sim2 | R Documentation |
Simulate data for the model
sim2(p = 500, n = 100, m = 24, nz = 4, rho = 0.4, B.elem = 0.5)
p |
column for X which is the main effect |
n |
number of observations |
m |
number of responses |
nz |
number of modifiers |
rho |
values to be used in the covariance matrix when generating X |
B.elem |
the value of the non-zero elements in beta? |
The simulated data with the following components: Beta: matrix of actual beta coefficients p by m Theta: a m by p by K array of actual theta coefficients Y: a N by m matrix of response variables X: a N by p matrix of covariates Z: a N by K matrix of modifiers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.