drop_detect {dropout}R Documentation

Detect Instances of Dropout in Data

Description

The drop_detect function detects participants who drop out of the survey by recognizing NA sequences up to the last question of the survey. Additionally, the function provides the column name and index where the dropout occurs.

Usage

drop_detect(data)

Arguments

data

A dataframe in which to detect instances of dropout.

Value

A dataframe containing the following columns:

Examples

## Not run: 
# Example usage with the 'flying' dataframe
detect_result <- drop_detect(flying)
print(detect_result)

## End(Not run)


[Package dropout version 2.2.0 Index]