Re: [R] New variables "remember" how they were created?

2009-10-29 Thread Skipper Seabold
On Wed, Oct 28, 2009 at 12:40 PM, Adaikalavan Ramasamy wrote: > Your example is too complicated for me. But few points: > > 1) What do you mean by "instrument"? Do you mean variable? > By instruments, I mean instrumental variables. Very common in econometrics: http://en.wikipedia.org/wiki/Instru

Re: [R] New variables "remember" how they were created?

2009-10-28 Thread Adaikalavan Ramasamy
Your example is too complicated for me. But few points: 1) What do you mean by "instrument"? Do you mean variable? 2) diff(demand) is identical to demand[-1] - demand[-204] 3) system() is a built-in R function, so avoid using it as variable name 4) The variable "yd" is in the eqInvest formula

[R] New variables "remember" how they were created?

2009-10-27 Thread Skipper Seabold
Hello all, I hope this question is appropriate for this ML. Basically, I am wondering if when you create a new variable, if the variable holds some information about how it was created. Let me explain, I have the following code to replicate an example in a textbook (Greene's Econometric Analysis