lnm_model: Logistic Normal Multinomial Model

View source: R/estimators.R

lnm_modelR Documentation

Logistic Normal Multinomial Model

Description

Apply a logistic normal multinomial model to jointly model a vector of count responses $y$ in an outcome or mediation model. This is a common choice for data where the parameter of interest is the composition across responses (e.g., microbiome).

Usage

lnm_model(...)

Arguments

...

Keyword parameters passed to lnm in the 'miniLNM' package.

Value

model An object of class model with estimator, predictor, and sampler functions associated wtih a linear model.

See Also

model lm_model rf_model glmnet_model brms_model

Examples

m <- lnm_model()
mat <- data.frame(matrix(rpois(250, 10), 25, 10))
colnames(mat) <- paste0("y", seq_len(6))
fit <- estimator(m)(y1 + y2 + y3 + y4 ~ y5 + y6, mat)

multimedia documentation built on Sept. 30, 2024, 9:28 a.m.