bestfits: Comparison table for best models with different...

View source: R/bestfits.R

bestfitsR Documentation

Comparison table for best models with different transformations

Description

bestfits creates a table with AIC, Adjusted R2 and other statistics for model comparisons. In order to make possible far comparisons, an adjusted version of AIC for transformations is used.

Usage

bestfits(obj, ...)

Arguments

obj

object of class bestfit

Examples

library(sf)
data(centro_2015)
centro_2015 <- st_drop_geometry(centro_2015)
centro_2015 <- within(centro_2015, PU <- valor/area_total)
best_fit <- bestfit(PU ~ area_total + quartos + suites + garagens +
                    dist_b_mar + padrao, data = centro_2015,
                    transf = c("log", "sqrt"))
(b <- bestfits(best_fit))

library(sjPlot)
tab_model(b$models, show.aic = T)


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