summary method for class bestfit produce result summary
containing the formula for the best (chosen) fit and the summary.lm
for that fit.
# S3 method for bestfit summary(object, fit = 1, subset, ...)
| object | an object of class |
|---|---|
| fit | the number of the chosen fit from the combination matrix (defaults
for the best fit found with |
| subset | a specification of the rows to be used: defaults to all rows.
This can be any valid indexing vector (see [.data.frame) for the
rows of data or if that is not supplied, a data frame made up of the
variables used in |
| ... | further arguments passed to lm. |
Returns the call for the bestfit function, the best
(chosen) fit number, the lm formula and the lm fit summary
for the best (chosen) fit transformations found by bestfit.
library(appraiseR) dados <- st_drop_geometry(centro_2015) best_fit <- bestfit(valor ~ ., data = dados, subset = -c(31, 39)) summary(best_fit)#> Error in is.data.frame(data): object 'dados' not found#> Error in is.data.frame(data): object 'dados' not found