compress_design: Produce a compressed representation of a survey design object

View source: R/quadratic_forms_of_survey_design_objects.R

compress_designR Documentation

Produce a compressed representation of a survey design object

Description

Produce a compressed representation of a survey design object

Usage

compress_design(design, vars_to_keep = NULL)

Arguments

design

A survey design object

vars_to_keep

(Optional) A character vector of variables in the design to keep in the compressed design. By default, none of the variables are retained.

Value

A list with two elements. The design_subset element is a a design object with only the minimal rows needed to represent the survey design. The index element links each row of the original design to a row of design_subset, so that the design can be "uncompressed."


bschneidr/svrep documentation built on Feb. 11, 2025, 4:24 a.m.