Skip to contents

kobo_analysis_from_dap performs a survey analysis from a data analysis plan, while kobo_analysis_from_dap_group is a wrapper around the former to run multiple grouped analyses at once.

Usage

kobo_analysis_from_dap(
  design,
  dap,
  survey,
  choices,
  group = NULL,
  level = 0.95,
  choices_sep = "/"
)

kobo_analysis_from_dap_group(
  design,
  dap,
  survey,
  choices,
  l_group,
  no_group = TRUE,
  level = 0.95,
  choices_sep = "/"
)

Arguments

design

A srvyr::design object.

dap

A well formatted data analysis plan.

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.

level

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

choices_sep

Select multiples choices separator.

l_group

A list of vectors of variables to group by.

no_group

If TRUE, the analysis without grouping is run.

Value

A survey-summarized-median data frame

Specifics

  • It takes the default for most variables, e.g. it tries to label, it calculates confidence intervals, and separators are the default.

  • Choices cannot be NULL.

  • The separator for choices can be changed.

  • Level can be changed.