Skip to contents

OGD Wrapper for Structural Survey Estimation Functions

Usage

se_ogd_wrapper(
  data,
  core_fun,
  ...,
  strata,
  weight,
  alpha = 0.05,
  variable = NULL,
  show_internal = FALSE
)

Arguments

data

A data frame or tibble.

core_fun

The core estimation function to use, one of se_mean, se_total, se_prop.

...

Grouping variables (unquoted or programmatic).

strata

Stratification variable (unquoted or programmatic).

weight

Sampling weights variable (unquoted or programmatic).

alpha

Significance level for confidence intervals.

variable

(Optional) Variable to estimate mean for (only needed for se_mean).

show_internal

Show internal estimates of variance, standard deviation (and percent confidence interval for se_total()). Hidden by default.

Value

A tibble with estimates for all combinations of grouping variables.