View source: R/summary.bestfit.R
| summary.bestfit | R Documentation |
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 class '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 |
... |
not used. |
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(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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.