Learn R Programming

surveybootstrap (version 0.0.3)

parse_design: 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)

Value

a list with entries psu.formula and strata.formula

Arguments

formula

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