DesMat: Design Matrix of a loglinear regression

Description Usage Arguments Value

View source: R/DesMat.R

Description

Design Matrix of a loglinear regression

Usage

1
DesMat(Q, lvl.cov)

Arguments

Q

A number of categories in a multivariate count outcome.

lvl.cov

A list containing the level of each covariate.

Value

A list of two elements where the first element is the left hand side of loglinear regression and the second element is the design matrix of loglinear regression. The first element is a matrix of all possible combination of multivariate count and categorical covariate levels. See vignette for more detail.


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