Description Usage Arguments Examples
This function can be used to fit a new cub model in which has changed some arguments.
1 | 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. |
1 2 3 4 5 6 7 8 | # 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, ])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.