View source: R/misclassGLM.R View source: R/main.R
| simulate_GLM_dataset | R Documentation |
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
)
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.