simulate_GLM_dataset {misclassGLM} | R Documentation |
Simulate a Data Set to Use With misclassGLM
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 either with added Gaussian noise or drawn from a logit distribution
Usage
simulate_GLM_dataset(
n = 50000,
const = 0,
alpha = 1,
beta = -2,
beta2 = NULL,
logit = FALSE
)
Arguments
n |
number observations |
const |
constant |
alpha |
parameter for X |
beta |
parameter for M(1) |
beta2 |
parameter for M2, if NULL, M is a binary covariate, otherwise a three-valued categorical |
logit |
logical, if true logit regression, otherwise Gaussian regression |
Details
This can be used to demonstrate the abilities of misclassGLM
. For an example
see misclassGLM
.
See Also
[Package misclassGLM version 0.3.5 Index]