create_plots_rr: Create Plots Random Responding

Description Usage Arguments Examples

View source: R/biasdetection_functions.R

Description

This function creates different kinds of plots such as bar plot, density plot and histogram for the generated dataframe rr_data. The percentage of random responding is analysed both group wise (groups from the survey) and respondent wise. Plots for group wise analysis include bar plot while for respondent wise, includes both bar plot and histogram.

Usage

1
create_plots_rr(rr_data, excluded_time_groups, num_time_groups)

Arguments

rr_data

A dataframe containing unique responses (based on id) from the original panel data

excluded_time_groups

A list containing the indices of excluded time groups. Excluded time groups could be the time groups which could be neglected for calculating the percentage of random responding

num_time_groups

Number of time groups create_plots_rr()

Examples

1
2
3
4
## Not run: 
create_plots_rr(dataframe, list(1,3,5), 12)

## End(Not run)

Rupanjan22/biasdetection documentation built on April 14, 2021, 10:46 a.m.