Description Usage Arguments Value Examples
tranaform the y and rerun the linear model
1 | transformY(x, y, file = "tranformResult.txt")
|
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 |
The statistical tests results, outlierTest, durbinWatsonTest, VIF, and gvlma
y1round a transformed y vector in global environment
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.