| SSexp2P | R Documentation | 
This selfStart model evaluates the power regression function (formula as: y=a*exp(b*x)). It has an initial attribute that will evaluate initial estimates of the parameters 'a' and 'b' for a given set of data.
SSexp2P(predictor, a, b)
| predictor | a numeric vector of values at which to evaluate the model. | 
| a, b | The numeric parameters responsing to the exp2P model. | 
Weiping Mei meiweipingg@163.com
trendline, SSexp3P, SSpower3P, nls, selfStart
library(basicTrendline) x<-1:5 y<-c(2,4,8,20,25) xy<-data.frame(x,y) getInitial(y ~ SSexp2P(x,a,b), data = xy) ## Initial values are in fact the converged values fitexp2P <- nls(y~SSexp2P(x,a,b), data=xy) summary(fitexp2P)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.