update_cub: Update and Re-fit a Model Call

Description Usage Arguments Examples

View source: R/update.cub.R

Description

This function can be used to fit a new cub model in which has changed some arguments.

Usage

1
update_cub(object, ..., evaluate = TRUE)

Arguments

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.

Examples

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, ])

fhernanb/cubm documentation built on Dec. 10, 2020, 1:24 p.m.