Re: [R] Solving an equation in R (and using a loop)

2009-10-15 Thread leohearn
x(i)). I am solving for r when that equation equals 0, so, yes, I'm looking for the root. I'll try with a few more observations that have more xs. cheers Laura leohearn wrote: > > Hi > So, I have a dataset and I'm trying to solve for a parameter in an > equat

[R] Solving an equation in R (and using a loop)

2009-10-15 Thread leohearn
Hi So, I have a dataset and I'm trying to solve for a parameter in an equation using the dataset. Before applying more sophisticated statistical techniques, I want to tell R to solve it out for each observation. I know I have to use a loop for it (and I have done that before, but am a bit rusty),