Skip to content
Prev 23947 / 398502 Next

gnls from library nlme

Peter Schlattmann <peter.schlattmann at medizin.fu-berlin.de> writes:
There is a bug in the R version of gnls.  A certain construction is
needed when deparsing in S-PLUS but not needed in R.

I will upload a new version of the nlme package for R.  If you want to
test out the fix, the diff is given below.

Index: gnls.R
===================================================================
RCS file: /home/CVS/src/Rlibs/nlme/R/gnls.R,v
retrieving revision 1.7.2.2
diff -c -r1.7.2.2 gnls.R
*** gnls.R	9 Aug 2002 19:45:28 -0000	1.7.2.2
--- gnls.R	5 Oct 2002 00:04:48 -0000
***************
*** 233,239 ****
    names(plist) <- pnames
    for (nm in pnames) {
      plist[[nm]] <- TRUE
!     if (deparse(as.vector(params[[nm]][[3]])) != "1") {
        plist[[nm]] <-
          model.matrix(asOneSidedFormula(params[[nm]][[3]]),
                   model.frame(asOneSidedFormula(params[[nm]][[3]]), dataModShrunk))
--- 233,239 ----
    names(plist) <- pnames
    for (nm in pnames) {
      plist[[nm]] <- TRUE
!     if (deparse(params[[nm]][[3]]) != "1") {
        plist[[nm]] <-
          model.matrix(asOneSidedFormula(params[[nm]][[3]]),
                   model.frame(asOneSidedFormula(params[[nm]][[3]]), dataModShrunk))

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._