misclassGLMsimulates 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 either with added Gaussian noise or drawn from a logit distribution
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 either with added Gaussian noise or drawn from a logit distribution
simulate_GLM_dataset(
n = 50000,
const = 0,
alpha = 1,
beta = -2,
beta2 = NULL,
logit = FALSE
)simulate_GLM_dataset(
n = 50000,
const = 0,
alpha = 1,
beta = -2,
beta2 = NULL,
logit = FALSE
)
number observations
constant
parameter for X
parameter for M(1)
parameter for M2, if NULL, M is a binary covariate, otherwise a three-valued categorical
logical, if true logit regression, otherwise Gaussian regression
This can be used to demonstrate the abilities of misclassGLM. For an example
see misclassGLM.
This can be used to demonstrate the abilities of misclassGLM. For an example
see misclassGLM.
misclassGLM
misclassGLM