DataGen: Generating Dataset consisting of Multivariate Count Outcome

Description Usage Arguments Value Examples

View source: R/DataGen.R

Description

Generating Dataset consisting of Multivariate Count Outcome

Usage

1
DataGen(N, Q, S, beta, theta, s.u, n.cov, lvl.cov, Des, method, T = 2)

Arguments

N

The number of subject in the generated dataset.

Q

The number of categories in the multivariate count outcome.

S

The total number of multivariate count outcome per subject at each time point.

theta

The overdispersion parameter.

s.u

The variance of random effect to account for the correlation within time point.

n.cov

The number of covariates.

Des

Design matrix for fixed effects.

method

An argument of either DMM or UNBM

Value

A list of two elements where the first element is an N\times Q matrix of multivariate count outcome and the second element is N$\times$ n.cov categorical covariates.

Examples

1

IvonneMartin/CombinedMultinomial documentation built on Dec. 17, 2021, 11:32 p.m.