14 questions
-2
votes
0
answers
21
views
How Calculate PostHoc Power and Effect Size for all Numeric Columns in Python
I generated a random dataset that has 1 categorical column and 30 numeric columns. The categorical variable has 3 classes X, Y and Z. See data generation code below
I need help with Steps 2,3 and 4:
...
0
votes
2
answers
1k
views
Get partial correlations matrix from pandas dataframe using spearman
I want to obtain a matrix of partial correlatins (for all pairs), removing the effect of all other columns.
I am using pingouin, however the function
df.pcorr().round(3)
only works with pearson ...
0
votes
1
answer
439
views
Is there a way to run a loop for the pingouin.anova analysis?
I am sure this is simple but I am still learning python. I need help figuring out how to iterate over columns in a pandas dataframe and run the pingouin analysis for each. As of now, I can run
pg....
2
votes
0
answers
96
views
Which is the better way of getting significantly correlated features with respect to outcome variable?
I have a dataset with 2112 features and 2337 entries.
I am trying to see the correlation between these features and the dependent variable. All of the features and the outcome variable are numeric. ...
1
vote
0
answers
4k
views
ImportError: cannot import module from scipy.stats using Pingouin
This issue is appearing in a local Jupyter notebook and I'm using Python 3.10
Importing scipy and scipy.stats is no problem.
import scipy
import scipy.stats
However, I'm trying to use the Pingouin ...
1
vote
1
answer
292
views
DataFrame to DataFrameRow conversion (Julia)
I'm using Pingouin.jl to test normality.
In their docs, we have
dataset = Pingouin.read_dataset("mediation")
Pingouin.normality(dataset, method="jarque_bera")
Which should return ...
1
vote
1
answer
167
views
pg.pairwise_corr error: x and y must be 1D array
trying with the pg.pairwise_corr method I get the following error:
pg.pairwise_corr(df)
/usr/local/lib/python3.7/dist-packages/pingouin/correlation.py in corr(x, y, tail, method, **kwargs)
507 ...