This function can be used to fit a new cub model in which has changed some arguments.
update_cub(object, ..., evaluate = TRUE)
object | an existing fit obtained from cub function. |
---|---|
... | additionally arguments to the call or arguments with changed values. |
evaluate | if true evaluate the new call else return the call. |
# The first model mod1 <- cub(pi.fo = global ~ 1, xi.fo = ~ 1, m=7, data=univer) mod1 # Modifying right sides of pi and xi formulas update_cub(mod1, pi.fo = global ~ gender, xi.fo = ~ lage + gender) # Modifying the dataset update_cub(mod1, xi.fo = ~ 1, m=7, data=univer[1:50, ])