| survey_example | R Documentation |
A simulated questionnaire dataset with 30 Likert-scale items measuring three latent constructs (satisfaction, engagement, loyalty), plus demographic variables and an overall satisfaction score.
survey_example
A data frame with 200 rows and 35 variables:
Integer. Unique respondent identifier
Integer. Respondent age (18-75 years)
Factor. Gender (Male, Female, Other)
Ordered factor. Education level (High School, Bachelor, Master, PhD)
Integer. Overall satisfaction score (0-100)
Ordered factor. Satisfaction items (1-7 Likert scale)
Ordered factor. Engagement items (1-7 Likert scale)
Ordered factor. Loyalty items (1-7 Likert scale)
This dataset represents a common scenario in survey research: multiple items measuring similar constructs lead to redundancy and multicollinearity. Items within each construct are correlated (satisfaction, engagement, loyalty), and the constructs themselves are inter-correlated.
Use case: Demonstrating assocSelect() for identifying redundant questionnaire
items in mixed-type data (ordered factors + numeric variables).
Simulated data based on typical customer satisfaction survey structures
assocSelect(), corrPrune()
data(survey_example)
# This dataset has mixed types: numeric (age, overall_satisfaction),
# factors (gender, education), and ordered factors (Likert items)
str(survey_example[, 1:10])
# Use assocSelect() for mixed-type data pruning
# This may take a few seconds with 34 variables
pruned <- assocSelect(survey_example[, -1], # Exclude respondent_id
threshold = 0.8,
method_ord_ord = "spearman")
length(pruned@subset_list[[1]]) # Size of the best (top-ranked) subset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.