If you have a working function that gives the power for a given sample size
then you can use the uniroot function to find which sample size will give
the desired power (many of the standard power functions use this internally
when computing anything other than power). You just create a function th
eh Zakeri
Cc: R-help
Subject: Re: [R] Determining sample size from power function
Dear Kaveh,
Take a look at http://www.statmethods.net/stats/power.html
HTH,
Jorge.-
On Thu, Jan 10, 2013 at 3:21 PM, Kaveh Zakeri <> wrote:
Hello,
I am trying to get the power function to report the sample s
Dear Kaveh,
Take a look at http://www.statmethods.net/stats/power.html
HTH,
Jorge.-
On Thu, Jan 10, 2013 at 3:21 PM, Kaveh Zakeri <> wrote:
> Hello,
>
> I am trying to get the power function to report the sample size rather
> than the power. My goal is to input a variety of values for theta an
Hello,
I am trying to get the power function to report the sample size rather than the
power. My goal is to input a variety of values for theta and then for the power
function to report the corresponding sample sizes. I haven't had much luck
trying to create my own function, something along the
4 matches
Mail list logo