Closed ja-thomas closed 8 years ago
More code
mod <- glmboostLSS(y ~ . , data = dat, families = NBinomialLSS(),
control = boost_control(mstop = 100, trace = FALSE),
method = "outer")
mod2 <- glmboostLSS(y ~ . , data = dat, families = NBinomialLSS(),
control = boost_control(mstop = 100, trace = FALSE),
method = "outer")
mstop(mod) <- 10
mstop(mod) <- 100
all.equal.list(coef(mod), coef(mod2))
all.equal.environment(environment(mod$mu$subset), environment(mod2$mu$subset), check.attributes = FALSE)
all.equal.environment(environment(mod$sigma$subset), environment(mod2$sigma$subset), check.attributes = FALSE)
Possible issue:
sigma
was updated at least once (after the initialization)sigma
was selectedNo issue if we use a start model with one or more sigma updates and don't go below the point were sigma is updated or if we use a start model without sigma and reduce the model.
Model reduction yields different coefficients if the model is set back to the earlier value.
MWE: