Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

update.rsm

Update and Re-fit a RSM Model Call


Description

update.rsm is used to update a rsm model formulae. This typically involves adding or dropping terms, but updates can be more general.

Usage

## S3 method for class 'rsm'
update(object, formula., ..., evaluate = TRUE)

Arguments

object

a model of class rsm to be updated.

formula.

changes to the formula – see update.formula for details.

...

additional arguments to the call, or arguments with changed values. Use name = NULL to remove the argument name.

evaluate

if TRUE evaluate the new call else return the call.

Value

If evaluate = TRUE the fitted object, otherwise the updated call.

Note

Based upon update.default.

See Also

Examples

data(houses)
houses.rsm <- rsm(price ~ ., family = student(5), data = houses)
## model fit including all covariates
##
houses.rsm <- update(houses.rsm, method = "rsm.fit", 
                     control = glm.control(trace = TRUE))
## prints information about the iterative procedure at each iteration
##
update(houses.rsm, ~ . - bdroom + offset(7 * bdroom))
## "bdroom" is included as offset variable with fixed (= 7) coefficient

hoa

Higher Order Likelihood Inference

v2.1.4.1
GPL (>= 2) | file LICENCE
Authors
R port by Alessandra R. Brazzale <alessandra.brazzale@unipd.it>, following earlier work by Douglas Bates. The function tem is based on work by Anthony Davison <Anthony.Davison@epfl.ch>
Initial release
2015-08-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.