inv_answer_shares: Test answer distribution

Description Usage Arguments Details Value

View source: R/inv_answer_shares.R

Description

This function investigates the answer shares by interviewer and detects deviances in shares.

Usage

1
2
3
4
5
6
7
8
inv_answer_shares(
  survey_data,
  answer_options_to_exclude,
  alpha = 0.05,
  max_answer_options_of_question = 15,
  translate_table = NULL,
  output = "conspi"
)

Arguments

survey_data

data table of class be_iaclass

answer_options_to_exclude

a vector of answer options that shall not be included in the analysis

alpha

singnificance level on that shall be tested

max_answer_options_of_question

threshold of number of answer options that the question shall be analysed

Details

Each answer option is treated as a binary variable. To test whether the share of a specific answer option for a specific interviewer deviates from the expected probability, estimated from all interviews, a binomial test is carried out. p-values are p-adjusted. Significances are calculated on #'level alpha.

Value

data table with unadjusted and adjusted p-values for each question-answer-interviewer-combination


marleneweinauer/iatools documentation built on Jan. 13, 2020, 3:24 p.m.