View source: R/misclassMLogit.R
simulate_mlogit_dataset | R Documentation |
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
)
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. |
This can be used to demonstrate the abilities of misclassMlogit. For an example
see misclassMlogit
.
misclassMlogit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.