Hi,
I have been using the newest version of PLINK2 (https://www.cog-genomics.org/plink/2.0/) to perform a sex-SNP interaction analysis with a binary outcome.
I ran the following command:
plink2 --bgen [FILE].bgen --sample [FILE].sample --pheno-name [pheno] --covar [FILE].phen --covar-name sex PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 --logistic interaction --parameters 1-13 --out [New FILE]
and the following error was output:
Warning: Skipping --glm regression on phenotype 'pheno', since
genotype/covariate scales vary too widely for numerical stability of the
current implementation. Try rescaling your covariates with e.g.
--covar-variance-standardize.
So I added --covar-variance-standardize to the command:
plink2 --bgen [FILE].bgen --sample [FILE].sample --pheno-name [pheno] --covar [FILE].phen --covar-name sex PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 --logistic interaction --parameters 1-13 --covar-variance-standardize --out [New FILE]
and the analysis ran.
I found that PC1 and PC2 were causing the error (I included each covariate in the model separately, to see which one caused the error) though I couldn’t work out why. I standardised the PCs, and not sex, and ran the analysis without --covar-variance-standardize. It ran fine, but the output was different to when including --covar-variance-standardize.
It looks like when you use --covar-variance-standardize, it standardises all covariates in the model (sex & the PCs). Is that correct?
Is this why the output is different when using the --covar-variance-standardize vs. just standardising the PCs?
Many thanks,
Olivia