c212.bin.test {c212} | R Documentation |
Plot Raw Adverse Event Incidence Data
Description
Test the hypothesis that the proportions in two groups are the same. adverse event.
Usage
c212.bin.test(trial.data, alternative = "two.sided", correct = TRUE)
Arguments
trial.data |
A file or data frame containing the trial data. The data frame must contain the columns B (body-system), AE (adverse event), Group (1 - control, 2 treatment), Count (total number of events), Total (total number of participants). |
alternative |
Alternative hypothesis may be "two.sided", "greater" or "less". The default is "two.sided". |
correct |
Apply a continuity correction. |
Details
Test the hypothesis that the proportions in two groups are the same.
Value
Dataframe containing the results of the test. A copy of the input dataframe with an additional column p containing the p-value from the test.
Note
Wrapper for the R function 'prop.test' in package 'stats'.
Author(s)
R. Carragher
Examples
data(c212.trial.data)
pr = c212.bin.test(c212.trial.data)
head(pr)
## Not run:
B j AE p
1 Bdy-sys_1 1 Adv-Ev_1 2.893605e-01
2 Bdy-sys_2 1 Adv-Ev_2 5.711463e-03
3 Bdy-sys_2 2 Adv-Ev_3 1.655715e-02
4 Bdy-sys_2 3 Adv-Ev_4 6.497695e-01
5 Bdy-sys_2 4 Adv-Ev_5 7.433433e-01
6 Bdy-sys_3 1 Adv-Ev_6 8.419469e-08
## End(Not run)
[Package c212 version 0.98 Index]