flxglht {flexmix} | R Documentation |
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 signature 'flexmix,character'
flxglht(model, linfct, ...)
## S4 method for signature 'FLXRoptim,character'
flxglht(model, linfct, ...)
Arguments
model |
Either a fitted mixture model of class |
linfct |
A character string which can be either |
... |
Currently not used. |
Details
Only tested for finite mixture models fitted with driver
FLXMRglm
.
Value
An object of class "glht"
.
Author(s)
Friedrich Leisch
References
Friedrich Leisch and Torsten Hothorn. Simultaneous Inference in Finite Mixtures of Regression Models. Austrian Journal of Statistics, forthcoming.
See Also
Examples
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)
[Package flexmix version 2.3-20 Index]