Giter Site home page Giter Site logo

codacy-badger / plnmodels Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pln-team/plnmodels

0.0 0.0 0.0 5.52 MB

A collection of Poisson lognormal models for multivariate count data analysis

License: GNU General Public License v3.0

R 75.46% Shell 0.02% C++ 23.98% C 0.54%

plnmodels's Introduction

PLNmodels: Poisson lognormal models

Travis-CI build status AppVeyor Build Status

The Poisson lognormal model and variants can be used for a variety of multivariate problems when count data are at play (including PCA for count data and network inference). This package implements an efficient algorithm to fit such models accompanied with a set of functions for vizualisation and diagnostic.

Installation

System Requirements

Installation requires a system version of nlopt 2.4-2

  • On Debian or Ubuntu use libnlopt-dev:
sudo apt-get install libnlopt-dev
  • On Fedora or similar use NLopt-devel:
sudo yum install NLopt-devel
  • With Mac OS X, install nlopt via homebrew
brew install nlopt
  • On Windows, the package now builds and installs correctly, by including static libraries on compilation. However, I just test it with appveyor so I have never run PLNmodels on Windows: any feedbacks welcomed!

R Package installation

## w/o vignettes
devtools::install_github("jchiquet/PLNmodels")
devtools::install_github("jchiquet/PLNmodels", build_vignettes = TRUE)

Usage and main fitting functions

The package comes with a ecological data to present the functionality

library(PLNmodels)
data(trichoptera)

The main fitting functions work with the usual R formula notations, with mutivariate responses on the left hand side. You probably want to start by one of them. Check the corresponding vignette and documentation page.

Unpenalized Poisson lognormal model (aka PLN)

myPLN <- PLN(Abundance ~ 1, data = trichoptera)

Rank Contraint Poisson lognormal for Poisson Principal Component Analysis (ala PLNPCA)

myPCA <- PLNPCA(Abundance ~ 1, data = trichoptera, ranks = 1:8)

Poisson lognormal discriminant analysis (aka PLNLDA)

myLDA <- PLNLDA(Abundance ~ 1, grouping = trichoptera$Group, data = trichoptera)

Sparse Poisson lognormal model for sparse covariance inference for counts (aka PLNnetwork)

myPLNnetwork <- PLNnetwork(Abundance ~ 1, data = trichoptera)

References

Please cite our work using the following references:

  • J. Chiquet, M. Mariadassou and S. Robin: Variational inference for probabilistic Poisson PCA, the Annals of Applied Statistics, to appear. link

  • J. Chiquet, M. Mariadassou and S. Robin: Variational inference for sparse network reconstruction from count data, arXiv preprint, 2018. link

plnmodels's People

Contributors

jchiquet avatar mahendra-mariadassou 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.