Description Usage Arguments Value Note
Function to generate multi-class data from a multinomial logistic regression. Assumes there are 5 classes. Only supports two modules for now. Currently this function is used for testing.
1 2 | multi_class_lr(n, mod1_size = 10, mod2_size = 10, rho = 0.8,
beta = NULL)
|
n |
Sample size. |
mod1_size |
Size of first module. |
mod2_size |
Size of second module. |
rho |
Correlation of covariates. |
beta |
A matrix of parameters. |
list with design matrix X, outcome y, and beta.
This work was partially funded by NSF IIS 1251151 and AMFAR 8721SC.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.