Skip to contents

Auto survey from a Kobo tool analysis

Usage

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

Arguments

design

A srvyr::design object.

survey

A survey sheet.

choices

A choices sheet.

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.

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

choices_sep

Select multiples choices separator.

label_survey

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

bind

Boolean. Output a dataframe or a list?

Value

A survey-summarized-median data frame

Automation

auto_kobo_analysis performs a very basic automated analysis using the provided Kobo tool.