Learn R Programming

flexmix (version 2.3-20)

flxglht: Simultaneous Inference in Finite Mixtures of Regression Models

Description

Extracts coefficient estimates and their covariance estimate to perform tests for zero coefficients or constant effects re-using functionality from package multcomp.

Usage

flxglht(model, linfct, ...)
# S4 method for flexmix,character
flxglht(model, linfct, ...)
# S4 method for FLXRoptim,character
flxglht(model, linfct, ...)

Value

An object of class "glht".

Arguments

model

Either a fitted mixture model of class "flexmix" or a re-fitted mixture model of class "FLXRoptim".

linfct

A character string which can be either "zero" or "tukey".

...

Currently not used.

Author

Friedrich Leisch

Details

Only tested for finite mixture models fitted with driver FLXMRglm.

References

Friedrich Leisch and Torsten Hothorn. Simultaneous Inference in Finite Mixtures of Regression Models. Austrian Journal of Statistics, forthcoming.

See Also

glht

Examples

Run this code
data("NPreg", package = "flexmix")

ex1 <- flexmix(yn ~ x + I(x^2), data = NPreg, k = 2,
               control = list(verb = 5, iter = 100))

zero_effect <- flxglht(ex1, "zero")
zero_effect
summary(zero_effect)

comp_effect <- flxglht(ex1, "tukey")
comp_effect
summary(comp_effect)

Run the code above in your browser using DataLab