Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retain the likert scale when using r_series #24

Open
danawanzer opened this issue May 20, 2020 · 1 comment
Open

Retain the likert scale when using r_series #24

danawanzer opened this issue May 20, 2020 · 1 comment

Comments

@danawanzer
Copy link

When performing r_series(likert, 5, 100, name ="Item", relate = "-.5_.1") (as in the readme file), it does not retain the original likert range. For example, running the code above results in the following ranges for the five items:

  1. Item_1: 1-5
  2. Item_2: 0-5
  3. Item_3: -1-5
  4. Item_4: -2-5
  5. Item_5: -3-4

I would like to be able to create likert scales with the same response scales (e.g., 1 through 5) that are related to one another (e.g., alpha = .80). The current code creates scales that are related but no longer on the same response scale.

@danawanzer
Copy link
Author

As a follow-up, I figured out a solution in the meantime using rescale in the scales package:

r_data_frame(
  n = 300,
  id,
  race, 
  education,
  level,
  `age` = rpois(lambda = 3), #Need to add 17 to this value
  r_series(likert, 5, name = "SWLS", relate = "-.5_.1")
) %>%
  mutate_at(vars(starts_with("SWLS")), rescale, to = c(1, 5))

This rescales the variables back to the original response scales but preserving the relationship between the items (e.g., alpha = .97).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant