Learn R Programming

deliberr (version 0.1.0)

get_dri_alpha: Get DRI Cronbach's Alpha

Description

get_dri_alpha calculates the internal consistency of DRI survey responses using Cronbach's alpha

Usage

get_dri_alpha(data)

Value

a dataframe with alpha_c, alpha_p, and alpha_all with values of Cronbach's alpha for considerations, policy preferences, and both, respectively

Arguments

data

the raw DRI survey response data

See Also

human_data for raw survey response data formatting

psych::alpha() for details on Cronbach's alpha calculation

Other DRI survey methods: get_dri_case(), get_dri_ic()

Examples

Run this code

# get pre-deliberation (stage_id == 1) data from Mayo case
data <- human_data[human_data$stage_id == 1 & human_data$case == "Mayo", ]
get_dri_alpha(data)

Run the code above in your browser using DataLab