Skip to contents

All survey design objects (survey_taylor, survey_replicate, survey_twophase, survey_nonprob) inherit from survey_base. This class is abstract and cannot be instantiated directly — use as_survey(), as_survey_replicate(), as_survey_twophase(), or as_survey_nonprob() instead.

Usage

survey_base(
  data = data.frame(),
  metadata = survey_metadata(),
  variables = list(),
  groups = character(0),
  call = NULL
)

Value

Cannot be instantiated directly. See survey_taylor, survey_replicate, survey_twophase, or survey_nonprob for concrete subclasses.

Properties

data

A data.frame containing the survey data.

metadata

A survey_metadata object.

variables

A named list of design specification (varies by subclass).

groups

Character vector of active grouping variables. Set by surveytidy's group_by(). Always character(0) in standalone surveycore use.

call

The language object capturing the construction call, or NULL.