B******y 发帖数: 9065 | 1 现在有2个组,一个是Placebo,另一个是Active,研究变量是符合正态分布的连续型变
量,可以很容易的求出两个Mean的比率(Ratio),但如何求这个比率的95% CI呢? |
b*****y 发帖数: 175 | |
A*******s 发帖数: 3942 | 3 you can always try bootstrapping
【在 B******y 的大作中提到】 : 现在有2个组,一个是Placebo,另一个是Active,研究变量是符合正态分布的连续型变 : 量,可以很容易的求出两个Mean的比率(Ratio),但如何求这个比率的95% CI呢?
|
s*r 发帖数: 2757 | 4 after log
【在 b*****y 的大作中提到】 : t test in proc means?
|
B******y 发帖数: 9065 | 5 这个的确是个好办法。
【在 A*******s 的大作中提到】 : you can always try bootstrapping
|
B******y 发帖数: 9065 | 6 但数据是符合正态分布的呀。
【在 s*r 的大作中提到】 : after log
|
B******y 发帖数: 9065 | 7 两个Mean的差可以,但Ratio似乎不可以。
【在 b*****y 的大作中提到】 : t test in proc means?
|
j*****e 发帖数: 182 | 8 If your sample size is large enough, you can use delta method to construct
the CI. This method even allows correlation between your numarator and
denominator.
If the sample size is small, you need to use bootstrap. There are different
ways to bootstrap, some are better than the others. You can refer to Davison
's bootstrap book for details. |
s*r 发帖数: 2757 | 9 i mean t test after log will give you the ci for the ratio
【在 B******y 的大作中提到】 : 两个Mean的差可以,但Ratio似乎不可以。
|
D*********2 发帖数: 535 | 10 usually we use log transformation, apply delta method. |
|
|
n*****n 发帖数: 3123 | 11 正太不保证都是正数啊, log 行不通的
【在 D*********2 的大作中提到】 : usually we use log transformation, apply delta method.
|
B******y 发帖数: 9065 | 12 但这样出来的CI是上下不一致的呀,不符合正态分布的。虽然数据没有出现负数的情况
,但感觉Log还是行不通。
【在 s*r 的大作中提到】 : i mean t test after log will give you the ci for the ratio
|
B******y 发帖数: 9065 | 13 能具体说说怎么用Delta Method吧?多谢了!
different
Davison
【在 j*****e 的大作中提到】 : If your sample size is large enough, you can use delta method to construct : the CI. This method even allows correlation between your numarator and : denominator. : If the sample size is small, you need to use bootstrap. There are different : ways to bootstrap, some are better than the others. You can refer to Davison : 's bootstrap book for details.
|
s*r 发帖数: 2757 | 14 ratio ci 不对称不是很正常吗
负数怕什么 给所有的数加上一个abs(min)+1不就可以啦
delta method要手算的, 我这个可以直接上sas
【在 B******y 的大作中提到】 : 但这样出来的CI是上下不一致的呀,不符合正态分布的。虽然数据没有出现负数的情况 : ,但感觉Log还是行不通。
|
B******y 发帖数: 9065 | 15 你说的这个方法我查了文献,是专门用于Lognormal的数据,应该不适用于Normal的数
据。
我的数据全是正数,所以可能可以勉强大致估计。但如果两个Mean都在接近0的位置,
恐怕这样的估算会有问题。
【在 s*r 的大作中提到】 : ratio ci 不对称不是很正常吗 : 负数怕什么 给所有的数加上一个abs(min)+1不就可以啦 : delta method要手算的, 我这个可以直接上sas
|
D*********2 发帖数: 535 | 16 can you try to use cauchy? I saw you mentioned the mean is close to zero. if
they are iid with mean zero, you can apply cauchy distribution. |
p*********8 发帖数: 1039 | 17 我试着答一下,我上次刚做过类似的作业
方法 delta method
1. let Z=X/Y,那Z 就是bivariate 的function
2. 用delta method 求出 Z 的mean, 和 variance, 这里的难点应该是variance, 它
是个矩阵的乘积,当然,结果是1*1,变成数值
3, U+/- 1.96* sqrt(variance)就是了
【在 B******y 的大作中提到】 : 现在有2个组,一个是Placebo,另一个是Active,研究变量是符合正态分布的连续型变 : 量,可以很容易的求出两个Mean的比率(Ratio),但如何求这个比率的95% CI呢?
|
s*r 发帖数: 2757 | 18 yeah, then how do you do inference?
if
【在 D*********2 的大作中提到】 : can you try to use cauchy? I saw you mentioned the mean is close to zero. if : they are iid with mean zero, you can apply cauchy distribution.
|
D*********2 发帖数: 535 | 19 good point!
Sorry I missed that. hehe.
【在 s*r 的大作中提到】 : yeah, then how do you do inference? : : if
|
B******y 发帖数: 9065 | 20 如果我理解不错的话,你的这个Delta Method是适用于X和Y为Paired Data(虽然X和Y
不一定是Correlated),Z为X和Y的一个比率。可我的问题是两个独立的组的Mean的比
率,应该还是有区别的。
【在 p*********8 的大作中提到】 : 我试着答一下,我上次刚做过类似的作业 : 方法 delta method : 1. let Z=X/Y,那Z 就是bivariate 的function : 2. 用delta method 求出 Z 的mean, 和 variance, 这里的难点应该是variance, 它 : 是个矩阵的乘积,当然,结果是1*1,变成数值 : 3, U+/- 1.96* sqrt(variance)就是了
|