se.prop2: Computes the estimate and standard error for a 2-group...

View source: R/meta_se.R

se.prop2R Documentation

Computes the estimate and standard error for a 2-group proportion difference

Description

This function computes the Agresti-Caffo standard error of a 2-group proportion difference using the frequency counts and sample sizes. The effect size estimate and standard error output from this function can be used as input in the meta.ave.gen, meta.lc.gen, and meta.lm.gen functions in applications where compatible proportion differences from a combination of 2-group and paired-samples studies are used in the meta-analysis.

Usage

se.prop2(f1, f2, n1, n2)

Arguments

f1

number of participants in group 1 who have the outcome

f2

number of participants in group 2 who have the outcome

n1

sample size for group 1

n2

sample size for group 2

Value

Returns a one-row matrix:

  • Estimate - estimated proportion difference

  • SE - standard error

References

\insertRef

Agresti2000vcmeta

Examples

se.prop2(31, 16, 40, 40)

# Should return:
#                          Estimate        SE
# Proportion difference:  0.3571429 0.1002777



dgbonett/vcmeta documentation built on July 12, 2024, 3:12 p.m.