plotmod
plots bestfit
models
plotmod(object, ...) # S3 method for bestfit plotmod(object, fit = 1, interval = c("none", "confidence", "prediction"), level = 0.8, local, ...) # S3 method for lm plotmod(object, interval = c("none", "confidence", "prediction"), level = 0.8, func = "identity", local, ...)
object | Object of class |
---|---|
… | further arguments passed to predict.lm. |
fit | the number of the chosen fit from the combination matrix (defaults
for the best fit found with |
interval | the type of interval calculation (provided to predict.lm) to be ploted with the model. |
level | Tolerance/confidence level (provided to predict.lm) to be ploted. |
local | Data Frame to be used for calculate the estimates (defaults for center of each variable). |
func | function used to transform the response (optional) |
data <- centro_2015@data best_fit <- bestfit(valor ~ ., data = data) plotmod(best_fit, interval = "confidence")#> Error in terms.formula(formula, data = data): argumento 'data' é do tipo erradoplotmod(best_fit, fit = 2, interval = "confidence")#> Error in terms.formula(formula, data = data): argumento 'data' é do tipo erradoplotmod(best_fit, interval = "confidence", local = list(area_total = 205, quartos = 3, suites = 1, garagens = 2, dist_b_mar = 250, padrao = "medio"))#> Error in terms.formula(formula, data = data): argumento 'data' é do tipo erradofit <- lm(log(valor) ~ ., data = data) plotmod(fit, interval = "confidence")#> Error in stats::terms.formula(stats::formula(z), data = data): argumento 'data' é do tipo erradoplotmod(fit, interval = "confidence", func = "log")#> Error in stats::terms.formula(stats::formula(z), data = data): argumento 'data' é do tipo erradoplotmod(fit, interval = "confidence", local = list(area_total = 205, quartos = 3, suites = 1, garagens = 2, dist_b_mar = 250, padrao = "medio"))#> Error in stats::terms.formula(stats::formula(z), data = data): argumento 'data' é do tipo erradoplotmod(fit, interval = "confidence", func = "log", local = list(area_total = 205, quartos = 3, suites = 1, garagens = 2, dist_b_mar = 250, padrao = "medio"))#> Error in stats::terms.formula(stats::formula(z), data = data): argumento 'data' é do tipo errado