Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

BregFix

Artificial Example for Binomial Regression


Description

A simple artificial regression example data set with 3 latent classes, one independent variable x and a concomitant variable w.

Usage

data("BregFix")

Format

A data frame with 200 observations on the following 5 variables.

yes

number of successes

no

number of failures

x

independent variable

w

concomitant variable, a factor with levels 0 1

class

latent class memberships

Examples

data("BregFix", package = "flexmix")
Model <- FLXMRglmfix(family="binomial",
                     nested = list(formula = c(~x, ~0), k = c(2, 1)))
Conc <- FLXPmultinom(~w)
FittedBin <- initFlexmix(cbind(yes, no) ~ 1, data = BregFix,
                         k = 3, model = Model, concomitant = Conc)
summary(FittedBin)

flexmix

Flexible Mixture Modeling

v2.3-17
GPL (>= 2)
Authors
Bettina Gruen [aut, cre] (<https://orcid.org/0000-0001-7265-4773>), Friedrich Leisch [aut] (<https://orcid.org/0000-0001-7278-1983>), Deepayan Sarkar [ctb] (<https://orcid.org/0000-0003-4107-1553>), Frederic Mortier [ctb], Nicolas Picard [ctb] (<https://orcid.org/0000-0001-5548-9171>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.