Learn R Programming

corkscrew (version 1.1)

transformation: 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.

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

Details

Applies only when both the response variable and the predictor variables are continuous.

Examples

Run this code
data(airquality)
transformation(names(airquality)[2:4],"Ozone",airquality)

Run the code above in your browser using DataLab