From: Mikko Pakkanen <mikko.pakkanen_at_helsinki.fi>

Date: Wed 25 May 2005 - 19:43:29 EST

language R

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 25 19:53:38 2005

Date: Wed 25 May 2005 - 19:43:29 EST

Here's an example: this is, of course, OK:

But, now if I'd like to estimate a model with logarithm of p as a regressor, an error occurs:

Transforming an instrument causes the same error too:

> instr2 <- ~ log(d) + f

> fit3 <- systemfit("2SLS", eqns=list(demand), inst=instr2, data=kmenta)

Error in log(d) : Object "d" not found

One could certainly just create those transformed variables to avoid the problem, but it would be much more convenient, if it wasn't necessary, especially if several regressors are involved.

> version

arch i386 os mingw32 system i386, mingw32 status major 2 minor 1.0 year 2005 month 04 day 18

language R

Regards,

-Mikko Pakkanen

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 25 19:53:38 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:32:05 EST
*