Displaying 1 result from an estimated 1 matches for "fm3indom".
Did you mean:
fm1indom
2007 Aug 23
0
Lost in substitute: nlsList and nlme with dynamic formula
...rm,data=Indometh)
# still correct
nlme(fm2Indom.lis,random=pdDiag(A1+lrc1+A2~1))
#Error in switch(mode(x), "NULL" = structure(NULL, class = "formula"), :
# invalid formula
# B.D. Ripley val(subst) workaround
# http://finzi.psych.upenn.edu/R/Rhelp02a/archive/16599.html
fm3Indom.lis = eval(substitute(nlsList(form,data=Indometh)),
list(form=form))
nlme(fm3Indom.lis,random=pdDiag(A1+lrc1+A2~1))
#.. Same error