Re: [R] Problem with na in nls

From: Florence Combes <fcombes_at_gmail.com>
Date: Thu 20 Oct 2005 - 00:56:38 EST

maybe you should keep your NA but deal with the "na.action" option of the nls() function ?

HTH.
Florence.

On 10/19/05, Florent Bresson <f_bresson@yahoo.fr> wrote:
>
> I'm trying to run a nls on a subset of a data.frame.
> In the subset, one observation is NA. So I drop the
> observation but when I ask for :
>
> >sm <- nls(machin$revcum ~
> Lc.singh(machin$popcum,p), start=list(p=c(2,3)))
>
> I get :
>
> Erreur dans parse(file, n, text, prompt) : syntax
> error in "~ "
>
> If I put some value for the non available observation
> instead of droping it, it works. So what's the problem ?
>
> ______________________________________________
> 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
>

        [[alternative HTML version deleted]]



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 Thu Oct 20 01:18:06 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 19:06:35 EST