Re: [R] Determining sample size from power function

2013-01-14 Thread Greg Snow
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

Re: [R] Determining sample size from power function

2013-01-11 Thread Kaveh Zakeri
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

Re: [R] Determining sample size from power function

2013-01-09 Thread Jorge I Velez
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

[R] Determining sample size from power function

2013-01-09 Thread Kaveh Zakeri
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