simulate_mlogit_dataset {misclassGLM} | R Documentation |
Simulate a Data Set to Use With misclassMlogit
Description
simulates a data set with - one continuous variable X drawn from a Gaussian distribution, - a binary or trinary variable M with misclassification (M2) - a dependent variable drawn from a multionomial distribution dependent on X and M.
Usage
simulate_mlogit_dataset(
n = 1000,
const = c(0, 0),
alpha = c(1, 2),
beta = -2 * c(1, 2),
beta2 = NULL
)
Arguments
n |
number observations |
const |
constants |
alpha |
parameters for X |
beta |
parameters for M(1) |
beta2 |
parameters for M2, if NULL, M is a binary covariate, otherwise a three-valued categorical. |
Details
This can be used to demonstrate the abilities of misclassMlogit. For an example
see misclassMlogit
.
See Also
[Package misclassGLM version 0.3.5 Index]