| update.rsm {marg} | R Documentation |
update.rsm is used to update a rsm model
formulae. This typically involves adding or dropping terms, but
updates can be more general.
update.rsm(object, formula., ..., evaluate = TRUE)
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.
|
If evaluate = TRUE the fitted object, otherwise the updated
call.
Based upon updated.default.
update, update.default,
update.formula
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