transformation {corkscrew} | R Documentation |
Relationship between the response variables and predictors
Description
Transformation is used to study the relationship between the two variables. The relationships that are studied include linear, power, log and arctangent.
Usage
transformation(x, y, data)
Arguments
x |
Predictor variables in the dataframe that are to be transformed. |
y |
Response variable in the dataframe. |
data |
Name of the dataframe. |
Details
Applies only when both the response variable and the predictor variables are continuous.
Value
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 |
Author(s)
Navin Loganathan
Examples
data(airquality)
transformation(names(airquality)[2:4],"Ozone",airquality)
[Package corkscrew version 1.1 Index]