lnm_data {miniLNM}R Documentation

Simulates data from a Logistic Normal Multinomial Model.

Description

Simulates data from a Logistic Normal Multinomial Model.

Usage

lnm_data(N = 100, D = 5, K = 10)

Arguments

N

The number of samples in the output data.

D

The number of covariates, each of which can influence the response composition vector (e.g., the timepoint or disease status).

K

The number of output dimensions (e.g., number of taxa).

Value

A list with the following components:

X

An N x D matrix of covariates.

y

The N x K simulated samples.

B

The D x K relationship between covariates and outputs.

Examples

lnm_data(5, 3, 3)

[Package miniLNM version 0.1.0 Index]