SEest {RRate} | R Documentation |
Estimating standard error of the observed log-odds ratio
Description
SEest
implements the Woolf's method to estimate the standard error of the observed log-odds ratio.
Usage
SEest(n0,n1,fU,fA)
Arguments
n0 |
Sample size in the control group. |
n1 |
Sample size in the case group. |
fU |
Allele frequency in the control group. |
fA |
Allele frequency in the case group. |
Details
The Woolf's method to estimate the standard error of log(OR) is based on the following formula:
se(log(OR))=sqrt(1/(n0 fU(1-fU))+1/(n1 fA(1-fA))).
Value
The estimated standard error is returned.
Author(s)
Wei Jiang, Jing-Hao Xue and Weichuan Yu
Maintainer: Wei Jiang <wjiangaa@connect.ust.hk>
References
Woolf, B. (1955). On estimating the relation between blood group and disease. Ann Hum Genet, 19(4), 251-253.
Jiang, W., Xue, J-H, and Yu, W. What is the probability of replicating a statistically significant association in genome-wide association studies?. Submitted.
See Also
RRate
,
repRateEst
,
repSampleSizeRR
,
repSampleSizeRR2
,
HLtest
Examples
##Load data
data('smryStats1') #Example of summary statistics in 1st study
n2.0<-2000 #Number of individuals in control group
n2.1<-2000 #Number of individuals in case group
SE2<-SEest(n2.0, n2.1, smryStats1$F_U, smryStats1$F_A) #SE in replication study