Dear S-Plus Users,
I am analysing data using nls regression at different weight. I've tested
the two similar forms of nls function:
a) nls.fm0 <- nls( (~sqrt(bat^0)*(bag -(b0* bat^b2 * exp(b1 * bat + b3 *
idp1 + b4 *
idp2+ b5 * idp3 + b6 * idp4 + b7 * idp5)))), start = nls.st,
trace = T)
b) nls.fm0 <- nls( ((bag ~(b0* bat^b2 * exp(b1 * bat + b3 * idp1 + b4 *
idp2+ b5 * idp3 + b6 * idp4 + b7 * idp5)))), start = nls.st,
trace = T)
but I get different results for the root mean square error (rmse). Is the
function wrongly written? What would be the correct code ? I would like to
test for weight equal bat^1, bat^2, bat^3 before deciding the final model.
Any comment is appreciated.
Abd Rahman Kassim
(Senior Research Officer)
Hill Forest Silviculture
Forest Research Institute Malaysia (FRIM)
Kepong 52109
Kuala Lumpur
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|