1
$\begingroup$

I am working with complex survey data and trying to find a way to estimate a partial correlation coefficient based on a complex survey design. Is anyone familiar with an R package or function to estimate partial correlation coefficients with complex survey data?

$\endgroup$
2
  • $\begingroup$ hi, most of what's available in R is probably here r-survey.r-forge.r-project.org/survey $\endgroup$ Commented Feb 14, 2020 at 14:34
  • $\begingroup$ Thanks. I know that website. I looked there, but wasn't able to find a direct response to my question. $\endgroup$
    – Zbigniew
    Commented Feb 14, 2020 at 15:49

1 Answer 1

1
$\begingroup$

svyvar() will estimate the population covariance matrix. The inverse of this (use solve()) is the population precision matrix, and if you scale the diagonal to 1 (use cov2cor()) you get the population partial correlation matrix.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.