bxcxt: Boxcox transform for a response variable

Description Usage Arguments Examples

View source: R/bxcxt.R

Description

Boxcox transform for a response variable

Usage

1
bxcxt(y, x)

Arguments

y

A vector of response variable

x

A vector of explanatory variable

Examples

1
2
3
4
5
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]]

SK documentation built on May 2, 2019, 2:53 p.m.