Re: [R] Obtaining the value of x at a given value of y in a smooth.spline object

2009-08-12 Thread Greg Snow
n...@r-project.org [mailto:r-help-boun...@r- >> project.org] On Behalf Of Kavitha Venkatesan >> Sent: Wednesday, August 12, 2009 11:43 AM >> To: r-help@r-project.org >> Subject: [R] Obtaining the value of x at a given value of y in a >> smooth.spline object >> >&

Re: [R] Obtaining the value of x at a given value of y in a smooth.spline object

2009-08-12 Thread Kavitha Venkatesan
project.org] On Behalf Of Kavitha Venkatesan >> Sent: Wednesday, August 12, 2009 11:43 AM >> To: r-help@r-project.org >> Subject: [R] Obtaining the value of x at a given value of y in a >> smooth.spline object >> >> I have some data fit to a smooth.spline o

Re: [R] Obtaining the value of x at a given value of y in a smooth.spline object

2009-08-12 Thread Greg Snow
, 2009 11:43 AM > To: r-help@r-project.org > Subject: [R] Obtaining the value of x at a given value of y in a > smooth.spline object > > I have some data fit to a smooth.spline object as follows: (x=vector of > data > for the predictor variable, y=vector of data fo

[R] Obtaining the value of x at a given value of y in a smooth.spline object

2009-08-12 Thread Kavitha Venkatesan
I have some data fit to a smooth.spline object as follows: (x=vector of data for the predictor variable, y=vector of data for the response variable) fit <- smooth.spline(x,y) Now, given a spline fit point y_new, I want to be able to find out what value of x_new yielded this fit value. How to do s