| flxglht | R Documentation |
Extracts coefficient estimates and their covariance estimate to perform tests for zero coefficients or constant effects re-using functionality from package multcomp.
flxglht(model, linfct, ...)
## S4 method for signature 'flexmix,character'
flxglht(model, linfct, ...)
## S4 method for signature 'FLXRoptim,character'
flxglht(model, linfct, ...)
model |
Either a fitted mixture model of class |
linfct |
A character string which can be either |
... |
Currently not used. |
Only tested for finite mixture models fitted with driver
FLXMRglm.
An object of class "glht".
Friedrich Leisch
Friedrich Leisch and Torsten Hothorn. Simultaneous Inference in Finite Mixtures of Regression Models. Austrian Journal of Statistics, forthcoming.
glht
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.