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

2009-05-19 Thread Ikerne del Valle
M,Y) attach(money) ols1<-lm(log(M)~log(r)+log(Y)) output1<-summary(ols1) coef1<-ols1$coefficients a1<-coef1[[1]] b11<-coef1[[2]] b21<-coef1[[3]] money.m1<-nls(log(M)~a+b*r^g+c*Y^g,data=money,start=list(a=a1,b=b11,g=1,c=b21)) summary(money.m1) money.m2<-boxcox(money.m1)

[R] How can I estimate a Box-Cox function with R?

2009-05-21 Thread Ikerne del Valle
y.m1<-nls(GM~a+b*r^g+c*Y^g,data=money,start=list(a=a1,b=b11,g=1,c=b21)) money.m2<-nls(GM~a+b*Gr^g+c*GY^g,data=money,start=list(a=a2,b=b12,g=1,c=b22)) Ikerne del Valle Erkiaga Department of Applied Economics V Faculty of Economic and Business Sci

Re: [R] How can I estimate a Box-Cox function with R?

2009-05-22 Thread Ikerne del Valle
801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Ikerne del Valle Sent: Thursday, May 21, 2009 4:29 AM To: fernando.tus...@ehu.es > Cc: r-help@r-project.org Subject: [R] How can I estimate a Box-Cox function wit