Re: [R] Non linear modeling

From: Christian Ritz <ritz_at_bioassay.dk>
Date: Sat 19 Mar 2005 - 10:14:02 EST

Hi Angelo,

have a look at the following example which uses 'gls' in the nlme package.

library(nlme)

x <- runif(100, 0, 1)
y <- x + exp(4*x)*rnorm(100, 0, 2)
gls(y~x, correlation = varExp(form=~x))

For details see ?gls and ?varExp.

Christian



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 Received on Sat Mar 19 10:19:26 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:51 EST