Skip to content

Power calculation for detecting linear trend

3 messages · Meesters, Erik, Peter Dalgaard, ONKELINX, Thierry

#
Meesters, Erik wrote:
I think your DF are upside-down:
[1] 0.532651
6 days later
#
Erik,

I haven't seen an answer to your question, so I'll try to answer it. The
problem is that you switched the degrees of freedom. You had:

1 - pf(qf(.95, Vl, 1, ncp = 0), Vl, 1, ncp = Dl)
[1] 0.05472242

But it should be:

1 - pf(qf(.95, 1, Vl, ncp = 0), 1, Vl, ncp = Dl)
[1] 0.532651

Cheers,

Thierry

------------------------------------------------------------------------
----

ir. Thierry Onkelinx

Instituut voor natuur- en bosonderzoek / Reseach Institute for Nature
and Forest

Cel biometrie, methodologie en kwaliteitszorg / Section biometrics,
methodology and quality assurance

Gaverstraat 4

9500 Geraardsbergen

Belgium

tel. + 32 54/436 185

Thierry.Onkelinx op inbo.be

www.inbo.be 

 

Do not put your faith in what statistics say until you have carefully
considered what they do not say.  ~William W. Watt

A statistical analysis, properly conducted, is a delicate dissection of
uncertainties, a surgery of suppositions. ~M.J.Moroney