Description Usage Arguments Value Author(s) Examples
Experimental function, intended to flag nonsense responders in survey data.
1 2 | screenResponses(data = NULL, keys.list = NULL,
maxpercentidentical = 1, maxquestionnaires = 2)
|
data |
The dataset. |
keys.list |
A (named) list, with one entry for each questionnaire, containing a character vector with all items belonging to that questionnaire. |
maxpercentidentical |
Numeric. Maximum allowed percentage of consecutive identical answers within a questionnaire. |
maxquestionnaires |
Maximum number of questionnaires allowed to exceed maxpercentidentical. |
A list with elements "screen"
: A logical vector of length
equal to the number of rows in data
, identifying whether cases are
valid according to the thresholds specified; "exceeded_by_person"
:
a numeric vector, indicating for how many questionnaires each person exceeded
maxpercentidentical
; "exceeded_by_questionnaire"
:
a numeric vector, indicating for each questionnaire how many persons exceeded
maxpercentidentical
.
Caspar J. van Lissa
1 | # Makeme!
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.