Hi,

I'm trying to calculate polygenic scores using PRSice; my dataset contains only controls (PLINK-coded as "-9"). When running PRSice, I get the following message:

```
Error in if (levels(as.factor(prof$PHENO))[1] == "1" & levels(as.factor(prof$PHENO))[2] == :
missing value where TRUE/FALSE needed
Execution halted
```

In principle, this happens because PRSice is trying to get different levels for the phenotype in order to do a regression and compare cases vs controls. But even when specifying "no.regression T" or "no.regression T report.individual.scores T", the program gives the same output. Has anyone experienced/solved this before?

A brute-force alternative could be to insert "random" phenotypes (namely, to use both "1"s and "2"s for every pheno), and just neglect the regression outputs. But this is not quite orthodox...

Any help is appreciated. Thanks,

Thanks! I tried it with two different "random phenotype" files, and gives the same results. Just for future reference, the whole command was:

The final output (after automatic cleanup) was two files: PROFILES.nosex and PRSice_SCORES_AT_ALL_THRESHOLDS.txt.

Best,

Hi,

Even I am also getting same error. But, after giving phenotype file, this is the error now, Error in family$linkfun(mustart) : Argument mu must be a nonempty numeric vector Calls: summary ... glm -> eval -> eval -> glm.fit -> <anonymous> -> .Call Execution halted