[Rd] variables in nls (PR#829)

baron@cattell.psych.upenn.edu baron@cattell.psych.upenn.edu
Sun, 28 Jan 2001 15:07:28 +0100 (MET)


Full_Name: Jonathan Baron
Version: 1.2.1
OS: Linux
Submission from: (NULL) (151.197.202.231)


The following gives an error message:
> nls(doit[2,] ~ 7/(1 + exp(a*efft[2,])),start=c(a=-.1))
Error in as.name(varName) : attempt to use zero-length variable name

The following runs fine:
> nls(doit.vm ~ 7/(1 + exp(a*efft.vm)),start=c(a=-.1))

This happens even though doit.vm and doit[2,] are identical (and efft[])


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._