powered by
The function transforms the dependent variable of a linear model using the Reciprocal transformation.
reciprocal(object)
an object of type lm.
An object of class trafo. Methods such as as.data.frame.trafo and print.trafo can be used for this class.
trafo
as.data.frame.trafo
print.trafo
# NOT RUN { # Load data data("cars", package = "datasets") # Fit linear model lm_cars <- lm(dist ~ speed, data = cars) # Transform dependent variable reciprocal(object = lm_cars) # }
Run the code above in your browser using DataLab