Skip to contents

Get all select_multiples proportions

Usage

kobo_select_multiple_all(
  design,
  survey,
  choices,
  group = NULL,
  group_key_sep = " -/- ",
  choices_sep = "/",
  label_survey = TRUE,
  label_choices = TRUE,
  na_rm = TRUE,
  vartype = "ci",
  level = 0.95
)

Arguments

design

A srvyr::design object.

survey

The survey sheet from Kobo (with column "type" split). See split_survey().

choices

The choices sheet from Kobo.

group

A quoted vector of columns to group by. Default to NULL for no group.

group_key_sep

A character string to separate grouping column names in a fancy 'group_key' column.

choices_sep

Select multiples choices separator.

label_survey

Boolean. Retrieve questions label from the survey sheet? Default to TRUE.

label_choices

Boolean. Retrieve choices label from the choices sheet? Default to TRUE.

na_rm

Should NAs from var be removed? Default to TRUE.

vartype

Report variability as one or more of: standard error ("se", default), confidence interval ("ci"), variance ("var") or coefficient of variation ("cv").

level

(For vartype = "ci" only) A single number or vector of numbers indicating the confidence level

Value

A character vector of select_one questions.

Details

survey should have a split type column with types of variables such as "select_one", "select_multiple", etc.