[R] Warning Message: In if (deparse(params[[nm]][[3]]) != "1")
obuyacharles
csabatia at vt.edu
Wed Sep 19 18:40:27 CEST 2012
I am using the gnls procedure in nlme package to fit a nonlinear model as:
nl.fit<-gnls(Y ~ b0*exp(b1/X),
data = data1,
params=list(
b0~p1+I(p1^2)+p2+I(p2^2)+p3+I(p3^2)+p5+p6
b1~p8+p2+I(p2^2)+p3+p9+p10+p11),
start = c(25,0,0,0,0,0,0,0,0,-8.6,0,0,0,0,0,0,0),
weights=varPower(form =~ X)
)
When I run this code, the model getts fitted but there are 2 warning
messages as
Warning messages:
1: In if (deparse(params[[nm]][[3]]) != "1") { :
the condition has length > 1 and only the first element will be used
2: In if (deparse(params[[nm]][[3]]) != "1") { :
the condition has length > 1 and only the first element will be used
I have no idea what there messages imply.
Any idea from somebody?
Charles
--
View this message in context: http://r.789695.n4.nabble.com/Warning-Message-In-if-deparse-params-nm-3-1-tp4643638.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list