Description
Logistic-normal Multinomial (LNM) models are common in problems with multivariate count data. This package gives a simple implementation with a 30 line 'Stan' script. This lightweight implementation makes it an easy starting point for other projects, in particular for downstream tasks that require analysis of "compositional" data. It can be applied whenever a multinomial probability parameter is thought to depend linearly on inputs in a transformed, log ratio space. Additional utilities make it easy to inspect, create predictions, and draw samples using the fitted models. More about the LNM can be found in Xia et al. (2013) "A Logistic Normal Multinomial Regression Model for Microbiome Compositional Data Analysis" <doi:10.1111/biom.12079> and Sankaran and Holmes (2023) "Generative Models: An Interdisciplinary Perspective" <doi:10.1146/annurev-statistics-033121-110134>.
Downloads
195
Last 30 days
17131st
195
Last 90 days
195
Last year
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | NOTE |
| r-devel-linux-x86_64-debian-gcc | NOTE |
| r-devel-linux-x86_64-fedora-clang | NOTE |
| r-devel-linux-x86_64-fedora-gcc | NOTE |
| r-devel-macos-arm64 | NOTE |
| r-devel-windows-x86_64 | NOTE |
| r-oldrel-macos-arm64 | NOTE |
| r-oldrel-macos-x86_64 | NOTE |
| r-oldrel-windows-x86_64 | NOTE |
| r-patched-linux-x86_64 | NOTE |
| r-release-linux-x86_64 | NOTE |
| r-release-macos-arm64 | NOTE |
| r-release-macos-x86_64 | NOTE |
| r-release-windows-x86_64 | NOTE |
Check details (16 non-OK)
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
'estimate.R' 'formula.R' 'toy_data.R'
for GNU extensions in Makefiles
GNU make is a SystemRequirements.
installed package size
installed size is 42.4Mb
sub-directories of 1Mb or more:
libs 41.9Mb
for GNU extensions in Makefiles
GNU make is a SystemRequirements.
installed package size
installed size is 43.3Mb
sub-directories of 1Mb or more:
libs 42.9Mb
for GNU extensions in Makefiles
GNU make is a SystemRequirements.
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
'estimate.R' 'formula.R' 'toy_data.R'
Check History
NOTE 0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
'estimate.R' 'formula.R' 'toy_data.R'
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘estimate.R’ ‘formula.R’ ‘toy_data.R’
DESCRIPTION meta-information
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
'estimate.R' 'formula.R' 'toy_data.R'
installed package size
installed size is 42.4Mb
sub-directories of 1Mb or more:
libs 41.9Mb
installed package size
installed size is 43.3Mb
sub-directories of 1Mb or more:
libs 42.9Mb
for GNU extensions in Makefiles
GNU make is a SystemRequirements.