GithubHelp home page GithubHelp logo

phoenixstar7 / irls Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xqwen/irls

0.0 2.0 0.0 33 KB

C++ implementation of IRLS algorithm for generalized linear model

License: GNU General Public License v3.0

C++ 72.36% Makefile 2.99% R 24.65%

irls's Introduction

C++ implementation of the Iteratively Re-Weighted Least Squares algorithm (IRLS)
 for generalized linear models (GLM)

IRLS is free software, you can redistribute it and/or modify it under
the terms of the GNU General Public License.

The GNU General Public License does not permit this software to be
redistributed in proprietary programs.

This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


** Install and usage
prerequisite: GNU Scientific Library (GSL) and C++ compiler (for instance g++)

To test, run `R --vanilla < test.R`. This will:
- simulate data;
- run the built-in glm() function (output shown on stdout);
- save data in files (test_y.dat, test_X.dat and test_offset.dat);
- compile c++ code (test.cpp) and run IRLS (output also shown on stdout).


** Extension to other GLM

To add a new link function, create a class mimicking "LogLink".
The new class should inherit from "LinkFunc" (base class) and
implement all required methods.


** References

Dobson, A. J. An Introduction to Generalized Linear Models (Chapman and Hall/CRC, 2002), second edn. URL http://www.worldcat.org/isbn/1584881658.

McCullagh, P. & Nelder, J. A. Generalized Linear Models. Monographs on Statistics & Applied Probability (Chapman & Hall/CRC, London, United Kingdom, 1989), second edition edn. URL http://www.worldcat.org/isbn/0412317605.

irls's People

Contributors

timflutre-perso avatar xqwen avatar

Watchers

James Cloos avatar espresso_prime342 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.