mean_prop_working: Generate Summary Tables For Chosen...

Description Usage Arguments Value

View source: R/mean_prop_working.R

Description

Add all levels from possible answer choices from choices sheet to dataset. This reduces possible errors that can occur when aggregating and computing summary statistics with survey package

Usage

1
2
3
4
5
6
7
8
9
mean_prop_working(
  design,
  list_of_variables,
  aggregation_level = NULL,
  round_to = 2,
  return_confidence = FALSE,
  na_replace = FALSE,
  questionnaire = NULL
)

Arguments

design

Design object.

list_of_variables

Vector containing all variable names to analyze and include in summary table.

aggregation_level

Aggregation level(s) to analyze data by. The default (NULL) will fully aggregate data to provide one value per variable. Argument also accepts vecors to aggregate the data using mroe than one variable.

round_to

The number of digits to round reults to.

return_confidence

Logical variable. TRUE (default) will return 95 percent confidence interval, FALSE returns no confidence interval.

na_replace

Logical variable. TRUE will replace NA with 0 for integerss and "filtered value" for categorical variables. FALSE (default) will leave NAs in dataset and thus they will automatically be removed during calculation.

Value

Table of summarised, aggregated variables.


zackarno/butteR documentation built on May 8, 2021, 4:50 p.m.