sim_mv: sim_mv

Description Usage Arguments References

View source: R/sim_functions.R

Description

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.

Usage

1
sim_mv(cor_mat, mus, sds, type)

Arguments

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

References

\insertAllCited
timdisher/neoDecision documentation built on Dec. 23, 2021, 10:56 a.m.