I am a beginner in using R studio. I am running a factor analysis using tetrachoric correlations from the PSYCH package.
I have some missing data, and I don't know how to omit only the missing data in cells (not rows or columns) which is called pairwise deletions in SPSS.
I found some code which works for pearsons correlations e.g., cor(dataset,use="pairwise.complete.obs")
But when I try the same code for tetrachoric correlations it does not work e.g., tetrachoric(dataset,use="pairwise.complete.obs").
I receive the following message
Error in tetrachoric(ACE, use = "pairwise.complete.obs") :
unused argument (use = "pairwise.complete.obs")
Could anyone provide any help in deleting only the missing data in cells e.g., NA
You are encouraged to share your reproducible code so that we may better help you. If you're wondering what reproducible code is, please check out the following link: