map_to_design: Map to Design

Description Usage Arguments Details Value Examples

View source: R/mappings.R

Description

creates a 'survey' design object from the data

Usage

1
2
map_to_design(data, cluster_variable_name = NULL,
  weighting_function = NULL)

Arguments

data

the dataset as a sampling frame. Must match the sampling frame provided to create the 'weighting_function' produced with 'map_to_weighting()'

weighting_function

if cluster sampling was used, what's the name of the column in 'data' that identifies the cluster?

Details

create a 'survey' package design object from the data and information on the sampling strategy

Value

a 'survey' package design object

Examples

1
## Not run: map_to_design(data,cluster_variable_name="cluster_id")

mabafaba/hypegrammaR documentation built on Oct. 2, 2019, 11:33 a.m.