Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.SGI.4.40.0402232022380.18692008-100000@origin.chass.utoronto.ca>
Date: 2004-02-24T01:24:03Z
From: Jean Eid
Subject: parameters' value
In-Reply-To: <76E50A283589324FA6A1999EEFBB134127D25B@UTHEVS1.mail.uthouston.edu>

On Mon, 23 Feb 2004, Duan Zhigang wrote:

> Hi, I am a new user of R. I am trying to use R to do some nonlinear modeling. However, I can not find how to get the parameters's value back.
>
> Here is the code in S-plus:
>
> ycos1.nl <- nls(y ~ m +ac*cos(2*pi*f*t) +as*sin(2*pi*f*t), start=nl.st, trace=T)
>
> ## store model info after satisfactory model has been found
> cNL1 <- c(ycos1.nl$parameters[1:3],0)

   cNL1 <- c(ycos1.nl$m$getPars()[1:3],0)



>
> What is same code in R?
>
> Thanks a lot.
>
> Duan
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>