I have two vectors x
and y
.
y <- c(0.0575, 0.1137, 0.2018, 0.3228, 0.5331, 0.8771, 1.0000)
x <- c(0.0040, 0.0105, 0.0258, 0.0540, 0.1210, 0.3419, 1.0000)
Which I can easily plot the relationship between them.
plot(y~x)
Is there any means by which I can get an approximate equation for the relationship between these vectors?
I can fit a loess
line but that doesn't allow me to extract the equation.
lo <- loess(y~x)
I only am looking for an approximation but I am not sure how to accomplish this within R.