This functions implements the update
method for bestfit models.
# S3 method for 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
.
best_fit <- bestfit(valor ~ ., centro_2015@data) 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)#> Error in eval(substitute(subset), data, env): objeto 'outliers' não encontrado