I used lm() function to get an exponential curve and it works well (the formula is y~exp(x)). But i don't understand how to use manually the coefficients ?
I do lm(y~exp(x)), extract the coefficients : b = intercept a = coef
Then, if i try to do the prediction "manually" with : a * exp(x) + b The result is wrong.
But with predict() it works totally fine. So I guess i didn't understand how lm() do the model ?
EDIT : Just mixed everything haha, it works well.
dput
) ? – MrSmithGoesToWashington