update.bestfit: Update method for bestfit

View source: R/update.bestfit.R

update.bestfitR Documentation

Update method for bestfit

Description

This functions implements the update method for bestfit models.

Usage

## S3 method for class 'bestfit'
update(object, formula., ...)

Arguments

object

a bestfit object.

formula.

a generic formula.

...

further arguments to be added to the original call.

Value

a new bestfit object, update according to the arguments passed to update.bestfit.

Examples

dados <- centro_2015@data
best_fit <- bestfit(valor ~ ., dados)
s <- summary(best_fit)
out <- car::outlierTest(s$fit)

#update best_fit in order to exclude the outlier found (AP_31)
outliers <- match(names(out$p), rownames(centro_2015@data))
update(best_fit, subset = -outliers)


lfpdroubi/appraiseR documentation built on April 14, 2024, 10:27 p.m.