Description Usage Arguments References
View source: R/sim_functions.R
Take a correlation matrix for mixed binomial and continuous data and simulate data from a multivariate probit model. A nice introduction to these can be found here. \insertCitemcparland2016modelneoDecision. The reason I use this approach is because later I will be simulating data from a model that assumes this and then trying to recover parameters.
1 |
cor_mat |
A correlation matrix. With 1s on the diagonal and correlations on the off diagonal |
mus |
a vector of means |
type |
a vector of types "c" or "b" for continuous or binary |
ses |
a vector of standard errors |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.