Skip to contents

Subpopulation (domain) mean with Woodruff linearised SE.

Usage

morie_survey_subpop(df, domain_col, domain_value, outcome_col, weight_col)

Arguments

df

A data.frame holding the (unit-level) sample data plus any weight/strata/cluster/domain columns referenced by name.

domain_col

Character; column name of the subpopulation / domain indicator in df.

domain_value

Value (matching df[[domain_col]]) defining the subpopulation to estimate.

outcome_col

Character; column name of the outcome variable in df.

weight_col

Character; column name of the design weight variable in df.