| exdata {mcemGLM} | R Documentation |
Example data
Description
Simulated binary response dataset to use in examples.
Usage
data("exdata")
Format
A data frame with 60 observations on the following 4 variables.
obsa numeric binary vector
obs2a numeric count vector
xa numeric vector
z1a factor with levels
1, and2z2a factor with levels
1,2, and3
The observations were generated independently with the code shown in the examples section.
Examples
set.seed(123)
obs <- c(sample(0:1, 30, TRUE, prob = c(0.5, 0.5)), sample(0:1, 30, TRUE, prob = c(0.3, 0.7)))
obs2 <- c(rpois(30, 5), rpois(30, 10))
[Package mcemGLM version 1.1.3 Index]