Description Usage Arguments Value
View source: R/generate-data.R
Generate data from mixed-type multivariate response regression model
1 | generate_mmrr(X, Beta, R, type, psi)
|
X |
An nr x p matrix of predictors. The first r elements are predictors for the r responses in the first independent response vector, and so on. |
Beta |
A p-vector of latent regression coefficients |
R |
An r x r square root of the covariance matrix of the latent vectors. Should be such that t(R) %*% R = solve(Omega). |
type |
An r-vector indicating response types: 1 means normal, 2 means Bernoulli, and 3 means Poisson. |
psi |
Vector of variance parameters, ignored for Bernoulli responses. For Poisson, generates Y| W as psi * Poi(exp(W) / psi) |
An n x r matrix of responses.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.