[R] environments again 2

Thomas Lumley tlumley at u.washington.edu
Tue Dec 18 17:44:36 CET 2001


On Tue, 18 Dec 2001, R. Heberto Ghezzo wrote:
> Now
> here there is another problem with my program to compute
> multiple comparisons. From App.Stat I have a fortran program to compute
> the probability for Dunnett tests. I compiled it to a dll and it works
> well, no problems there. Now I need the inverse 'qdunnett' and I
> decided that an easy way |:-)) was to use nls to find the point.
> something similar to:
>

nls() doesn't work well for noise-free problems like this (almost a FAQ).

For a simple case like this you should use uniroot.
See {p,q}birthday or power.t.test for an example

Incidentally, this doesn't seem to be an environments problem.
Descriptive subject lines on r-help messages really do help.

	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list