Skip to content
Prev 180919 / 398502 Next

nlrwr package. Error when fitting the optimal Box-Cox transformation with two variables

El mar, 19-05-2009 a las 17:17 +0200, Ikerne del Valle escribi?:
Ikerne,

     Inside boxcox.nls, the variable "log(M)" is searched in dataframe 
     money and not found. Indeed, it is a little redundant to take logs
     and then search a Box-Cox transformation --which gives the log
     when lambda is zero. 

     If you really want to do that, you might define a new variable
     "logM" and include that in your money dataframe, then rewrite
     the nls() call as:

     money.m1 <- nls(logM ~ a + b ... etc.

     Best, ft.