I made this nls
model
formula1 <- nls(y ~ a+(x/500)^b, data=my_data, start =list(a=1, b=1))
Then I got the result below,
summary(formula)
Parameters:
Estimate Std. Error t value Pr(>|t|)
a -0.5578576 0.2335056 -2.389 0.0251 *
b 0.9424152 0.0004498 2095.239 <2e-16 ***
But I want to change the "a", "b" to "0.02", "0.9", so I've changed my formula like this and got this error message ;
formula2 <- nls(y ~ 0.02+(x/500)^0.9, data=my_data)
Error in getInitial.default(func, data, mCall = as.list(match.call(func, : # no 'getInitial' method found for "function" objects
And I changed the start value as 'a=0,02, b=0.9', but the 'estimate value' is same as formula1 ;
formula2 <- nls(y ~ a+(x/500)^b, data=my_data, start =list(a=0.02, b=0.9))
summary(formula2)
Parameters:
Estimate Std. Error t value Pr(>|t|)
a -0.5578576 0.2335056 -2.389 0.0251 *
b 0.9424152 0.0004498 2095.239 <2e-16 ***
Please let me know how can I make nls formula with fixed start value. Thanks. :)