Learn R Programming

SK (version 1.1)

bxcxt: Boxcox transform for a response variable

Description

Boxcox transform for a response variable

Usage

bxcxt(y, x)

Arguments

y

A vector of response variable

x

A vector of explanatory variable

Examples

Run this code
# NOT RUN {
vehicles_obs <- vehicles[vehicles@data$obs1pred0 == 1,]
vehicles_obs$transheavy <- bxcxt(vehicles_obs$heavy, vehicles_obs$width)[[1]]
qqnorm(vehicles_obs$heavy)
qqnorm(vehicles_obs$transheavy)
lambda <- bxcxt(vehicles_obs$heavy, vehicles_obs$width)[[2]]
# }

Run the code above in your browser using DataLab