transformY: find the best transformatio of response variable, and then...

Description Usage Arguments Value Examples

Description

tranaform the y and rerun the linear model

Usage

1
transformY(x, y, file = "tranformResult.txt")

Arguments

x

an lm object, which is a result from a linear model (lm)

y

the response variable you would like to transform

file

the name of text file you want to create (e.g.,'mydiagnosis.txt'). It is iniated as 'result.txt' Note that the file will be saved at the working directory

Value

The statistical tests results, outlierTest, durbinWatsonTest, VIF, and gvlma

y1round a transformed y vector in global environment

Examples

1
2
3
data(data)
mod<-lm(data$tolerance_scale~data$sg_participation+data$virtual_si+as.numeric(data$EDUC)+as.numeric(data$yrbrn)+data$IVRACE2+data$IVRACE3+data$gndr+as.numeric(data$lrscale))
transformY(mod,data$tolerance_scale)

bblpo/diaglm documentation built on May 26, 2019, 11:58 p.m.