Re: [R] Power curves

2008-04-14 Thread Chuck Cleland
On 4/14/2008 6:35 AM, Chuck Cleland wrote: > On 4/14/2008 6:21 AM, Louisa Hay wrote: >> >> Hi, >> I am trying to create a power curve to show how the power of a t-test varies >> depending on the mean. Any ideas how I should go about this? >> Louisa > >Something like this maybe? > > mydiffs

Re: [R] Power curves

2008-04-14 Thread Chuck Cleland
On 4/14/2008 6:21 AM, Louisa Hay wrote: > > Hi, > I am trying to create a power curve to show how the power of a t-test varies > depending on the mean. Any ideas how I should go about this? > Louisa Something like this maybe? mydiffs <- seq(.05,1,.05) mypower <- vector("numeric", 20) for(

Re: [R] Power curves

2008-04-14 Thread Duncan Murdoch
Louisa Hay wrote: > > Hi, > I am trying to create a power curve to show how the power of a t-test varies > depending on the mean. Any ideas how I should go about this? > Louisa The pt() function supports a non-centrality parameter, so you can do this calculation directly. For other situations

[R] Power curves

2008-04-14 Thread Louisa Hay
Hi, I am trying to create a power curve to show how the power of a t-test varies depending on the mean. Any ideas how I should go about this? Louisa _ [[alternative HTML version deleted]]