parse_design: Parse a formula that describes the design of a survey

View source: R/helper_functions.r

parse_designR Documentation

Parse a formula that describes the design of a survey

Description

Parse a formula of the form ~ psu_v1 + psu_v2 + ... + strata(strata_v1 + strata_v2 + ...) into a PSU formula and a strata formula.

Usage

parse_design(formula)

Arguments

formula

a formula describing the sample design (see Description of bootstrap.estimates())

Value

a list with entries psu.formula and strata.formula


dfeehan/surveybootstrap documentation built on Feb. 3, 2023, 6:52 a.m.