Learn R Programming

tern (version 0.9.10)

h_miettinen_nurminen_var_est: Variance Estimates in Strata following Miettinen and Nurminen

Description

The variable names in this function follow the notation in the original paper by MiettinenNurminen1985;textualtern, cf. Appendix 1.

Usage

h_miettinen_nurminen_var_est(n1, n2, x1, x2, diff_par)

Value

A named list with elements:

  • p1_hat: estimated proportion in group 1

  • p2_hat: estimated proportion in group 2

  • var_est: variance estimate of the difference in proportions

Arguments

n1

(numeric)
sample sizes in group 1.

n2

(numeric)
sample sizes in group 2.

x1

(numeric)
number of responders in group 1.

x2

(numeric)
number of responders in group 2.

diff_par

(numeric)
assumed difference in true proportions (group 2 minus group 1).

References