You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, my data includes subjects from 3 different studies. The study is currently encoded as object type (i.e. study = ['study_1','study_2','study_1',etc]. I would like to check the correlation between two variables of interest while controlling for batch effects (by providing covar=['study']). Is it possible to do this with pg.partial_corr? I've found that I can't provide the variable study as an object type (which would be nice by the way), which probably means I need to include it as a dummy coded variable? Because if I don't do that, a simple mapping of the study name to an integer (0,1,2) would be misleadingly interpreted by pingouin as a continuous covariate?
The text was updated successfully, but these errors were encountered:
Hi, my data includes subjects from 3 different studies. The study is currently encoded as object type (i.e.
study = ['study_1','study_2','study_1',etc]
. I would like to check the correlation between two variables of interest while controlling for batch effects (by providingcovar=['study']
). Is it possible to do this withpg.partial_corr
? I've found that I can't provide the variablestudy
as an object type (which would be nice by the way), which probably means I need to include it as a dummy coded variable? Because if I don't do that, a simple mapping of the study name to an integer (0,1,2) would be misleadingly interpreted by pingouin as a continuous covariate?The text was updated successfully, but these errors were encountered: