From: Frede Aakmann Tøgersen <FredeA.Togersen_at_agrsci.dk>

Date: Thu 21 Sep 2006 - 07:02:03 GMT

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu Sep 21 17:06:01 2006

Date: Thu 21 Sep 2006 - 07:02:03 GMT

This is a short reproducing example.

n <- 1

y <- 2*x^2 + n + rnorm(x)

myf <- function(x,a,b,n){

res <- a*x^b + n

## a print for debugging purpose

print(n)

res

}

Is my problem related to this difference between lines of code from nls:

R-2.2.1: mf <- as.list(eval(mf, parent.frame()))

R-2.3.1: mf <- eval.parent(mf) n <- nrow(mf) mf <- as.list(mf)

where n is being defined in the scope of nls in the latest version?

Best regards

Frede Aakmann Tøgersen

Danish Institute of Agricultural Sciences
Research Centre Foulum

Dept. of Genetics and Biotechnology

Blichers Allé 20, P.O. BOX 50

DK-8830 Tjele

Phone: +45 8999 1900

Direct: +45 8999 1878

E-mail: FredeA.Togersen@agrsci.dk

Web: http://www.agrsci.org

This email may contain information that is confidential. Any use or publication of this email without written permission from DIAS is not allowed. If you are not the intended recipient, please notify DIAS immediately and delete this email.

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu Sep 21 17:06:01 2006

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.1.8, at Fri 22 Sep 2006 - 07:30:05 GMT.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*