View source: R/update.bestfit.R
update.bestfit | R Documentation |
This functions implements the update
method for bestfit models.
## S3 method for class 'bestfit'
update(object, formula., ...)
object |
a bestfit object. |
formula. |
a generic formula. |
... |
further arguments to be added to the original call. |
a new bestfit object, update according to the arguments passed to update.bestfit
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.