Returns a vector generated with the inverse of the function f

inverse(x, func)

Arguments

x

A vector or object of type

func

a function of the box-cox family (rsqr(), rec(), rsqrt(), log(), sqrt(), I() and sqr())

Value

a

Examples

dados <- st_drop_geometry(centro_2015) fit <- lm(log(valor) ~ ., data = dados) aval <- new_data(fit)
#> Error in eval(cl$data): object 'dados' not found
Y <- predict(fit, newdata = aval, interval = "confidence")
#> Error in predict.lm(fit, newdata = aval, interval = "confidence"): object 'aval' not found
inverse(Y, "log")
#> Error in inverse(Y, "log"): object 'Y' not found