R - Approximate Equation for set of points -


i have 2 vectors x , 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 can plot relationship between them.

plot(y~x) 

enter image description here

is there means can approximate equation relationship between these vectors?

i can fit loess line doesn't allow me extract equation.

lo <- loess(y~x) 

i looking approximation not sure how accomplish within r.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -