Munjal Patel
2016-Jun-07 16:26 UTC
[R] Power Calculation:2-sided exact equivalence test for Binomial Proportions
Dear R-Users, I am an intermediate level R user. I am performing the power calculations for the Binomial proportions (2 sided). I want to find the Power using the Exact test for the Equivalence of Binomial proportions. I do have the SAS code which is generating the Power for me but i am unable to find the Similar code in R. I need help for finding the similar computation in R. My SAS code. proc power; onesamplefreq test = equiv_exact alpha = 0.05 proportion = 0.30 lower = 0.2 upper = 0.4 ntotal = 500 power = .; run; Can somebody help me by providing the R code for the similar calculation ? Thank you. MJ [[alternative HTML version deleted]]
Cade, Brian
2016-Jun-07 18:42 UTC
[R] Power Calculation:2-sided exact equivalence test for Binomial Proportions
MJ: I think the EnvStats package has various power functions for binomial applications (also confidence interval half-widths). Brian Brian S. Cade, PhD U. S. Geological Survey Fort Collins Science Center 2150 Centre Ave., Bldg. C Fort Collins, CO 80526-8818 email: cadeb at usgs.gov <brian_cade at usgs.gov> tel: 970 226-9326 On Tue, Jun 7, 2016 at 10:26 AM, Munjal Patel <munjalpatel85 at gmail.com> wrote:> Dear R-Users, > I am an intermediate level R user. > > I am performing the power calculations for the Binomial proportions (2 > sided). > I want to find the Power using the Exact test for the Equivalence of > Binomial proportions. > I do have the SAS code which is generating the Power for me but i am unable > to find the Similar code in R. > I need help for finding the similar computation in R. > > My SAS code. > > proc power; > onesamplefreq test = equiv_exact > alpha = 0.05 > proportion = 0.30 > lower = 0.2 > upper = 0.4 > ntotal = 500 > power = .; > run; > > Can somebody help me by providing the R code for the similar calculation ? > Thank you. > > MJ > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Bert Gunter
2016-Jun-07 18:49 UTC
[R] Power Calculation:2-sided exact equivalence test for Binomial Proportions
Please search before posting, and if your search fails to get what you want, tell us why. I got what appeared to be many relevant hits on rseek.org using the search term "binomial exact power computations" . -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Jun 7, 2016 at 9:26 AM, Munjal Patel <munjalpatel85 at gmail.com> wrote:> Dear R-Users, > I am an intermediate level R user. > > I am performing the power calculations for the Binomial proportions (2 > sided). > I want to find the Power using the Exact test for the Equivalence of > Binomial proportions. > I do have the SAS code which is generating the Power for me but i am unable > to find the Similar code in R. > I need help for finding the similar computation in R. > > My SAS code. > > proc power; > onesamplefreq test = equiv_exact > alpha = 0.05 > proportion = 0.30 > lower = 0.2 > upper = 0.4 > ntotal = 500 > power = .; > run; > > Can somebody help me by providing the R code for the similar calculation ? > Thank you. > > MJ > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Leonardo Ferreira Fontenelle
2016-Jun-07 18:50 UTC
[R] Power Calculation:2-sided exact equivalence test for Binomial Proportions
Em Ter 7 jun. 2016, ?s 13:26, Munjal Patel escreveu:> Dear R-Users, > I am an intermediate level R user. > > I am performing the power calculations for the Binomial proportions (2 > sided). > I want to find the Power using the Exact test for the Equivalence of > Binomial proportions. > I do have the SAS code which is generating the Power for me but i am > unable > to find the Similar code in R. > I need help for finding the similar computation in R. >I'm not a statistician, and I have never hear of power calculation using exact test. On the other hand, with hundreds of observations on each group, does it matter? Maybe you could simply use power.prop.test(), from the loaded-by-default package "stats". Of course, you could look for packages about proportions or binomial in CRAN, or set up a simulation. Hope that helps, Leonardo Ferreira Fontenelle, MD, MPH PhD candidate, Federal University of Pelotas Professor of Medicine, Vila Velha University Legislative consultant, Municipal Chamber of Vit?ria
BONACHE Adrien
2016-Jun-08 06:58 UTC
[R] Power Calculation:2-sided exact equivalence test for Binomial Proportions
Hi again, In fact the pwr package do not provide exact test power. So you should definitely use g*power. Sincerely, Adrien. De?: Munjal Patel <munjalpatel85 at gmail.com> ??: r-help at r-project.org Envoy? le : Mardi 7 juin 2016 18h26 Objet?: [R] Power Calculation:2-sided exact equivalence test for Binomial Proportions Dear R-Users, I am an intermediate level R user. I am performing the power calculations for the Binomial proportions (2 sided). I want to find the Power using the Exact test for the Equivalence of Binomial proportions. I do have the SAS code which is generating the Power for me but i am unable to find the Similar code in R. I need help for finding the similar computation in R. My SAS code. proc power; onesamplefreq test = equiv_exact alpha = 0.05 proportion = 0.30 lower = 0.2 upper = 0.4 ntotal = 500 power = .; run; Can somebody help me by providing the R code for the similar calculation ? Thank you. MJ ??? [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]]