Rstats, Software Development.
the first stage). One caveat: if you want to log (or otherwise transform) regressors, you need to do this before estimating the model. Imagine, we have a data set called CigarettesSW and it has two regressors that we want to natural log transform — rprice and rincome. First transform the variables: