transformation {corkscrew} | R Documentation |
Transformation is used to study the relationship between the two variables. The relationships that are studied include linear, power, log and arctangent.
transformation(x, y, data)
x |
Predictor variables in the dataframe that are to be transformed. |
y |
Response variable in the dataframe. |
data |
Name of the dataframe. |
Applies only when both the response variable and the predictor variables are continuous.
Returns a list
[[1]] |
Summary of the predictor variables' best transformation, correlation and influence studied against the y variable |
[[2]] |
Summary of the predictor variables' correlation and influence for all the transformations studied against the y variable |
Navin Loganathan
data(airquality)
transformation(names(airquality)[2:4],"Ozone",airquality)