This function makes it easy to parse the dropouts from a LimeSurvey questionnaire.

processLimeSurveyDropouts(lastpage,
                          pagenames = NULL,
                          relevantPagenames = NULL)

Arguments

lastpage

A vector with the 'lastpage' variable as LimeSurvey stores it (an integer denoting the last page a participant visited, in other words, where they dropped out).

pagenames

Optional: names for each page.

relevantPagenames

Optional: the names of those pages that should be included.

Details

This will be described more in detail in a forthcoming publications.

Value

A list with information about the dropout, including ggplots.

Examples

processLimeSurveyDropouts(c(1,2,1,1,2,3,2,2,3,2,1));
#> $specificDropout #> lastpage frequency comments #> 1 0 0 Dropped out at page 1 #> 2 1 4 Dropped out at page 2 #> 3 2 5 Dropped out at page 3 #> 4 3 2 Dropped out at page 4 #> #> $progressiveDropout #> frequency percentage page prettyPercentage #> 1 11 100.00000 1 100% #> 2 7 63.63636 2 64% #> 3 2 18.18182 3 18% #> #> $plots #> $plots$absoluteDropout
#> #> $plots$relativeDropout
#> #> #> attr(,"class") #> [1] "limeSurveyDropouts"