From tadakado at gmail.com  Wed Oct 11 14:10:43 2006
From: tadakado at gmail.com (Tadashi Kadowaki)
Date: Wed, 11 Oct 2006 21:10:43 +0900
Subject: [Rd] nls function does not use subset argument (PR#9290)
In-Reply-To: <x2y7rnuqfn.fsf@viggo.kubism.ku.dk>
References: <20061011092903.BB944407EA@slim.kubism.ku.dk>
	<x2y7rnuqfn.fsf@viggo.kubism.ku.dk>
Message-ID: <dcb3073c0610110510m548cab97t15c36894b43e83da@mail.gmail.com>

I am sorry, it was my program's bug.
Yes, subset works!
Yes, nls works correctly!

I didn't pay enough attention to NAs.
NA threw off start value estimation in my program.
So, I got different results when I filtered NAs beforehand
and filtered by subset.
I also confused because subset does not appear in the
code of the nls function.
Then, I reached a wrong conclusion.

Thank you very much for your time.

Tadashi Kadowaki

11 Oct 2006 11:55:56 +0200, Peter Dalgaard <p.dalgaard at biostat.ku.dk>:
> tadakado at gmail.com writes:
>
> > Full_Name: Tadashi Kadowaki
> > Version: 2.4.0
> > OS: Redhat Linux 9
> > Submission from: (NULL) (58.12.166.67)
> >
> >
> > Doesn't nls function support subset?  It seems not to work.
> > And, there are no information in the online help.
> > Has it sunk into oblivion?
>
> Whatever gave you those ideas?
>
> Yes, nls supports subset.
> Yes, it does seem to work.
> Yes, it is documented in the online help.
> No, it has not sunk into anything.
>
>
> > nls(density ~ SSlogis(log(conc), Asym, xmid, scal), DNase, subset=Run==1)
> Nonlinear regression model
>  model:  density ~ SSlogis(log(conc), Asym, xmid, scal)
>   data:  DNase
>    Asym     xmid     scal
> 2.345180 1.483090 1.041455
>  residual sum-of-squares: 0.004789569
>
>
> --
>   O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
>  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
>  (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
> ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907
>




[Rd] nls function does not use subset argument (PR#9290)
Tadashi Kadowaki