How to pairwise delete with tetrachoric correlations


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


Hello @Filmq and welcome to Posit Community.

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:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.