Get_Interview_Time: Get Interview Timing

View source: R/filter.R

Get_Interview_TimeR Documentation

Get Interview Timing

Description

This function takes a survey list (either raw or filtered) and returns a list with three entries: the first is a data.table describing the timings of the responses, and the other two are median LOIs of either only the completes, or of all responses.

Usage

Get_Interview_Time(
  Survey_List,
  racer_percentile = 0.025,
  speeder_percentile = 0.05
)

Arguments

Survey_List

this is a list containing only the downloaded data from the survey for a multiple-part survey.

racer_percentile

This is the percentile that's serves as the threshold for racers- entered as a number (default is 0.025), any times within this percentile are classified as racers. All racers are speeders, but in some projects we make racing a hard BQ criteria, and speeding needs to be combined with other criteria.

speeder_percentile

This is the percentile that's serves as the threshold for speeders- entered as a number (default is 0.05), any times within this percentile are classified as speeders

Value

A list with three components: 1) A Data.table that gives the key, qPID, qPart1ID, Start_Time, End_Time, interviewtime, whether the response ended in a complete, and whether it was a racer (bottom 2.5 percentile) or a speeder (bottom 5 percentile) 2) Median LOI for completes, 3) Median LOI for all of the interviews passed to the function (includes those that made it to the last part but didn't submit on the last page)

Examples

Get_Interview_Time(Cint_Surveys_0)

bpresentati/surveyR documentation built on March 19, 2022, 3:40 a.m.