摘要
本文目的是使读者快速掌握用R软件估计样本含量和检验效能的方法。通过R软件中的stats包中的三个函数,即power.t.test()、power.prop.test()和power.anova.test(),可以很方便地估计若干种场合下的样本含量或检验效能。事实表明:R软件易于获取、易学易用、功能强大、适用面宽,可以方便快捷地解决试验设计中的样本含量与检验效能估计问题。
The paper aims to help the readers to grasp the method of estimating the sample size and power with R software. By using the three functions [power. t. test( ), power, prop. test( ) and power, anova, test( ) ] of stat in R software, it is convenient for readers to realize the estimation of sample size and power by using R software under the different situations. The methods of estimating the sample size and power by R software were introduced through several real examples in this article. Since that R is very easy for people to learn and use, and has the advantages of powerful functions and wide application, the users can solve tbe concrete problems concerned with the estimation of sample size and power in experimental designs conveniently and easily.
出处
《四川精神卫生》
2016年第6期507-511,共5页
Sichuan Mental Health
基金
国家高技术研究发展计划课题资助(2015AA020102)
关键词
R软件
样本含量
检验效能
假设检验
均值
率
R software
Sample size
Power
Hypothesis testing
Mean value
Rate