作者askpeople (就是要问!!!)
看板R_Language
标题[问题] 请问Z检定的power计算方式?
时间Fri Aug 27 11:42:06 2021
问题: 我想计算Z检定的power值,查指令发现:
可以使用power.z.test,但是我去R的help看
范例程式码如下:
power.z.test(sigma=6,effect=5,power=.9,test="one.tail")
既然都要输入power了 需要算什麽呢?
重点想问的是:
我想计算的power是: 例如平均数mu = 20,sigma平方已知 = 5,显着水准=0.05之下
(单尾检定: H0:mu=20 H1: mu>20 )
能够计算power的函数,在R上怎麽输入
有人可以帮忙吗? 拜托一下
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 123.194.172.28 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/R_Language/M.1630035728.A.327.html
1F:→ locka: 既然都有查help了 说明里不是有说…… [If n is provided, 08/27 12:45
2F:→ locka: then power is calculated. Conversely, if one provides p 08/27 12:45
3F:→ locka: ower, but not n, then the required n is calculated.] 08/27 12:45
4F:→ locka: btw 如果是非原生R的函式,请於内文中补充该函式使用套件的 08/27 12:46
5F:→ locka: 资讯 08/27 12:46
6F:→ askpeople: 不好意思 我叙述没看懂,想问说effect是什麽呢? 08/27 13:37
7F:→ askpeople: effect: The effect size? 指的是什麽呢? 08/27 13:38
8F:→ locka: 直接翻译的话:效果量,详细定义请查 Cohen's d 08/27 14:45
9F:→ askpeople: 刚刚跑了一下有了解: 我给n可算power 给power 可算n 08/27 15:11
10F:→ askpeople: 差不多是这个意思吗? 08/27 15:12
11F:→ Gjerry: 这个 function 可以用来做两件事情。一、做完实验算z tes 08/28 13:28
12F:→ Gjerry: t 的power,二、计算如果z test要得到预计power,会需要 08/28 13:28
13F:→ Gjerry: 多少样本。其实後者是比较有用。 08/28 13:28