summary.bestfit: Summary method for class bestfit

View source: R/summary.bestfit.R

summary.bestfitR Documentation

Summary method for class bestfit

Description

summary method for class bestfit produce result summary containing the formula for the best (chosen) fit and the summary.lm for that fit.

Usage

## S3 method for class 'bestfit'
summary(object, fit = 1, subset, ...)

Arguments

object

an object of class bestfit.

fit

the number of the chosen fit from the combination matrix (defaults for the best fit found with bestfit).

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 formula.

...

not used.

Value

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.

Examples

library(sf)
dados <- st_drop_geometry(centro_2015)
dados$padrao <- as.numeric(dados$padrao)
best_fit <- bestfit(valor ~ ., data = dados,
                    transf = c("rec", "rsqrt", "log", "sqrt"),
                    subset = -c(31, 39))
summary(best_fit)
summary(best_fit, fit = 514)

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