Description Usage Arguments Author(s) References
View source: R/ci_mixed_between.R
This function computes a confidence interval for the main effect of a grouping variable across two levels of a within subject factor when the measure of interest is dichotomous. This for example corresponds to the effectiveness of a treatment on individuals across two different points in time. The confidence interval that is produced is corrected for the within-subjects dependence of the two measures by applying a correction suggested by Donner and Klar (section 2.1; 1993) to the standard error of the difference of proportions.
1 2 | ci.mixed.between(ci, group1.measure1, group1.measure2, group2.measure1,
group2.measure2)
|
ci |
The confidence level - pass as a natural number (e.g. 95 for the 95% confidence interval). |
group1.measure1 |
A vector of "successes" (= 1) and "fails" (= 0) for the first measure in group 1 |
group1.measure2 |
A vector of "successes" (= 1) and "fails" (= 0) for the second measure in group 1 |
group2.measure1 |
A vector of "successes" (= 1) and "fails" (= 0) for the first measure in group 2 |
group2.measure2 |
A vector of "successes" (= 1) and "fails" (= 0) for the second measure in group 2 |
Martin Papenberg martin.papenberg@hhu.de
Donner, A., & Klar, N. (1993). Confidence interval construction for effect measures arising from cluster randomization trials. Journal of clinical epidemiology, 46(2), 123-131.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.