misclassMlogit
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.
simulate_mlogit_dataset(
n = 1000,
const = c(0, 0),
alpha = c(1, 2),
beta = -2 * c(1, 2),
beta2 = NULL
)
number observations
constants
parameters for X
parameters for M(1)
parameters for M2, if NULL, M is a binary covariate, otherwise a three-valued categorical.
This can be used to demonstrate the abilities of misclassMlogit. For an example
see misclassMlogit
.
misclassMlogit