Possible reasons for difference between pg.partial_corr and function from stack? #305
leodtprojectsd
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Hi @leodtprojectsd, Please see #147 (comment) and https://pingouin-stats.org/changelog.html#v0-4-0-august-2021 Briefly, since v0.4.0, Pingouin uses an inverse-covariance matrix approach to calculate the partial correlation, instead of a regression-residuals approach (which you implemented in
In the In [8]: iris_data.shape
Out[8]: (150, 4)
In [6]: iris_data.nunique()
Out[6]:
sepal length (cm) 35
sepal width (cm) 23
petal length (cm) 43
petal width (cm) 22
dtype: int64 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I am tyring to use pingouin.partial_corr to get the SPEARMAN partial correlation of all variables in a matrix.
I tried to compare the output of pingouin.partial_corr to one from a function from stack, however there are different resutls.
I was hoping you would know what the differences are attributed to (if its a bug on your side or not):
Here is the code:
OUT
Beta Was this translation helpful? Give feedback.
All reactions