transRegression {ResearchMethods} | R Documentation |
Using a Graphical User Interface (GUI), this function allows the user to either transform y or weight x in an attempt to make the regression equation fit the underlying assumptions.
transRegression(y,x,weights=rep(1,length(y)))
y |
The response variable. |
x |
The predictor variable. |
weights |
The vector of weights to be applied to x. |
The purpose of this function is to demonstrate the effect of transforming y or weighting x to fit a regression model. Note that this only works for a single covariate. The first window is a control window, from which transformations on y or x can be performed.
The second window contains two plots: the first is a standard regression plot, and the second is the plot of the residuals against the fitted values.
No value is returned, though the environment, TRenv, is left to access.
Mohamed Abdolell <mohamed.abdolell@dal.ca> and Sam Stewart <samstewart11@gmail.com>