powered by
Obtains the p-value for exact unconditional test of risk ratio.
riskRatioExactPValue( riskRatioH0 = 1, directionUpper = 1L, n1 = NA_integer_, y1 = NA_integer_, n2 = NA_integer_, y2 = NA_integer_ )
A data frame containing the following variables:
riskRatioH0: The risk ratio under the null hypothesis.
riskRatioH0
directionUpper: Whether larger values represent better responses.
directionUpper
riskRatio: The observed risk ratio.
riskRatio
zstat: The observed value of the Z test statistic.
zstat
pvalue: The one-sided p-value for the unconditional exact test.
pvalue
pi2star: The value of pi2 that yields the p-value.
pi2star
The risk ratio under the null hypothesis. Defaults to 1.
Whether larger values represent better responses.
The sample size for the active treatment group.
The number of responses for the active treatment group.
The sample size for the control group.
The number of responses for the control group.
Kaifeng Lu, kaifenglu@gmail.com
riskRatioExactPValue(riskRatioH0 = 1, directionUpper = 1, n1 = 68, y1 = 2, n2 = 65, y2 = 1)
Run the code above in your browser using DataLab