genetics-statistics / GEMMA

Genome-wide Efficient Mixed Model Association
https://github.com/genetics-statistics/GEMMA
GNU General Public License v3.0
333 stars 125 forks source link

Coding discrete covariates #217

Closed pkothiyal closed 4 years ago

pkothiyal commented 4 years ago

Hello,

I have to include categorical covariates with >2 classes (e.g., 0,1,2,3) and wanted to see if I can provide these as is and they will be treated as discrete categories instead of numeric values or if I should split them into N-1 dummy binary variables (where N is number of classes, 4 in this example). Thanks.

xiangzhou commented 4 years ago

Yes, you will want to use dummy variables to represent categorical covariates.

pkothiyal commented 4 years ago

Thanks. Closing the issue.