Returns a vector generated with the inverse of the function f
inverse(x, func)
x | A vector or object of type |
---|---|
func | a function of the box-cox family (rsqr(), rec(), rsqrt(), log(), sqrt(), I() and sqr()) |
a
fit <- lm(log(valor) ~ ., data = centro_2015@data) aval <- new_data(fit) Y <- predict(fit, newdata = aval, interval = "confidence") inverse(Y, "log")#> fit lwr upr #> 1 749833.6 632479.6 888962.1 #> 2 980623.5 894177.6 1075426.7 #> 3 1046964.1 942009.7 1163612.1