All Projects → jchiquet → Plnmodels

jchiquet / Plnmodels

Licence: gpl-3.0
A collection of Poisson lognormal models for multivariate count data analysis

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Plnmodels

SpatPCA
R Package: Regularized Principal Component Analysis for Spatial Data
Stars: ✭ 16 (-48.39%)
Mutual labels:  pca, r-package
PLNmodels
A collection of Poisson lognormal models for multivariate count data analysis
Stars: ✭ 44 (+41.94%)
Mutual labels:  pca, r-package
Skimr
A frictionless, pipeable approach to dealing with summary statistics
Stars: ✭ 889 (+2767.74%)
Mutual labels:  r-package
Wellknown
WKT <-> GeoJSON
Stars: ✭ 15 (-51.61%)
Mutual labels:  r-package
Tidymv
Tidy Model Visualisation for Generalised Additive Models
Stars: ✭ 25 (-19.35%)
Mutual labels:  r-package
Rticles
LaTeX Journal Article Templates for R Markdown
Stars: ✭ 895 (+2787.1%)
Mutual labels:  r-package
Spenv
Combine environmental and spatial data
Stars: ✭ 8 (-74.19%)
Mutual labels:  r-package
Brms
brms R package for Bayesian generalized multivariate non-linear multilevel models using Stan
Stars: ✭ 825 (+2561.29%)
Mutual labels:  r-package
Sofa
easy R interface to CouchDB
Stars: ✭ 30 (-3.23%)
Mutual labels:  r-package
Palmnet
Source code for the 2019 IEEE TIFS paper "PalmNet: Gabor-PCA Convolutional Networks for Touchless Palmprint Recognition"
Stars: ✭ 25 (-19.35%)
Mutual labels:  pca
Originr
Species origin data from the web in R
Stars: ✭ 13 (-58.06%)
Mutual labels:  r-package
Rdhs
API Client and Data Munging for the Demographic and Health Survey Data
Stars: ✭ 22 (-29.03%)
Mutual labels:  r-package
Chr
🔤 Lightweight R package for manipulating [string] characters
Stars: ✭ 18 (-41.94%)
Mutual labels:  r-package
Rtimicropem
😷 R Package for the Analysis of RTI MicroPEM Output Files 😷
Stars: ✭ 9 (-70.97%)
Mutual labels:  r-package
Nanny
A tidyverse suite for (pre-) machine-learning: cluster, PCA, permute, impute, rotate, redundancy, triangular, smart-subset, abundant and variable features.
Stars: ✭ 17 (-45.16%)
Mutual labels:  pca
Digital Image Processing Algorithms
SJTU CS386 Digital Image Processing
Stars: ✭ 20 (-35.48%)
Mutual labels:  pca
Icpsrdata
Reproducible data downloads from the ICPSR data archive
Stars: ✭ 7 (-77.42%)
Mutual labels:  r-package
Restez
😴 📂 Create and Query a Local Copy of GenBank in R
Stars: ✭ 22 (-29.03%)
Mutual labels:  r-package
Rnaturalearthdata
to hold data used by rnaturalearth
Stars: ✭ 8 (-74.19%)
Mutual labels:  r-package
Rdrpostagger
R package for Ripple Down Rules-based Part-Of-Speech Tagging (RDRPOS). On more than 45 languages.
Stars: ✭ 31 (+0%)
Mutual labels:  r-package

PLNmodels: Poisson lognormal models

R build status Coverage status CRAN_Status_Badge Lifecycle: stable

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

Installation

PLNmodels is available on CRAN. The development version is available on Github.

R Package installation

CRAN dependencies

PLNmodels needs the following CRAN R packages, so check that they are are installed on your computer.

required_CRAN <- c("R6", "glassoFast", "Matrix", "Rcpp", "RcppArmadillo",
                   "nloptr", "igraph", "grid", "gridExtra", "dplyr",
                   "tidyr", "ggplot2", "corrplot", "magrittr", "devtools")
not_installed_CRAN <- setdiff(required_CRAN, rownames(installed.packages()))
if (length(not_installed_CRAN) > 0) install.packages(not_installed_CRAN)

Bioconductor dependencies

PLNmodels also needs two BioConductor packages

required_BioC <- c("phyloseq", "biomformat")
not_installed_BioC <- setdiff(required_BioC, rownames(installed.packages()))
if (length(not_installed_BioC) > 0) BiocManager::install(not_installed_BioC)

Installing PLNmodels

  • For the last stable version, use the CRAN version
install.packages("PLNmodels")
  • For the development version, use the github install
remotes::install_github("jchiquet/PLNmodels")
  • For a specific tagged release, use
remotes::install_github("jchiquet/[email protected]_number")

Usage and main fitting functions

The package comes with an ecological data set to present the functionality

library(PLNmodels)
data(trichoptera)
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)

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. There is a dedicated vignettes for each model in the package (See http://jchiquet.github.io/PLNmodels/articles/).

Unpenalized Poisson lognormal model (aka PLN)

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

Rank Constrained Poisson lognormal for Poisson Principal Component Analysis (aka PLNPCA)

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

Poisson lognormal discriminant analysis (aka PLNLDA)

myLDA <- PLNLDA(Abundance ~ 1, grouping = 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, 12: 2674–2698, 2018. link

  • J. Chiquet, M. Mariadassou and S. Robin: Variational inference for sparse network reconstruction from count data, Proceedings of the 36th International Conference on Machine Learning (ICML), 2019. link

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].