Re: [R] nls error in formula

From: Anaid Diaz <syadp_at_yahoo.com.mx>
Date: Tue 19 Apr 2005 - 00:26:34 EST


thank you, it worked.

Sylvia
--- Douglas Bates <bates@stat.wisc.edu> wrote:
> Anaid Diaz wrote:
> > Hi,
> > I'm a new R user, with a lot of questions. At the
> > moment I'm stoped on an error traying to fit a
> model:
> >
> >
> >>x <- sandeel ## numeric data (2500-60000)
> >>y <- Noss ## numeric data (0-1.2)
> >>A <- 0.8
> >>B <- 0.6
> >>C <- 1/40000
> >>nls( y ~ A-B*exp(-C*x))
> >
> > Error in match.call(definition, call, expand.dots)
> :
> > .Primitive... is not a function
> >
> > I'm not sure if the error is due to the formula
> sytax
> > or something else.
> > I'll appreciate any help
> >
> > Sylvia
>
> Use
>
> nls(y ~ A -B*exp(-C*x), start = c(A = 0.8, B = 0.6,
> C = 1/40000))
>
> instead or, preferably,
>
> nls(y ~ SSasymp(x, Asym, R0, lrc))
>
> and read
>
> ?SSasymp
>
> for an interpretation of the estimated parameters.
>



Do You Yahoo!?
La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

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 Tue Apr 19 00:30:48 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:15 EST