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

weights and missings #12

Open
SietseDost opened this issue Dec 2, 2021 · 4 comments
Open

weights and missings #12

SietseDost opened this issue Dec 2, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@SietseDost
Copy link

Hi Martin, love the package, but I have 2 questions:

  1. Is it possible to run the analysis with a separate weight variable?
  2. If I'm correct the analysis is standard with listwise deletion of missings. is it also possible to run it with pairwise deletion?
    Thanks!
@jeppelsh
Copy link

Hello Martin! I find @SietseDost's first feature also very helpful when weighting the answers of a survey so that they correspond to the total population.
Thanks a lot in advance!

@martinctc
Copy link
Owner

Hi @SietseDost - currently we don't have any capability in rwa to support a separate weight variable. @stonid - do you by any chance have an implementation of this available, so we can look at including this in the package?

With your second question @SietseDost, this is also not available but I can include this as a feature in #6 or #7. The plan is to export the parameter for use in cor() here, in rwa():

  cor_matrix <-
    cor(thedata, use = "pairwise.complete.obs") %>%
    as.data.frame(stringsAsFactors = FALSE, row.names = NULL) %>%
    remove_all_na_cols() %>%
    tidyr::drop_na()

@martinctc martinctc self-assigned this Dec 10, 2023
@martinctc martinctc added the enhancement New feature or request label Dec 10, 2023
@stonid
Copy link
Collaborator

stonid commented Dec 10, 2023

@SietseDost @martinctc Unfortunately, I don't have an implementation for weighting. The missing data option should be relatively easy to implement as a new feature as Martin noted.

@SietseDost
Copy link
Author

Thanks @martinctc! Let me know when the pairwise deletion feature is available. And of course also if one day adding a weight variable is possible;-)

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

No branches or pull requests

4 participants