Hi, I would like to know how a logistic regression in a GWAS works in detail. I have an example dataset, with SampleIDs, Genotypes (GT) in dosage formt and binary phenotypes. Now, how would the logistic regression be performed if I only want to work with the allele counts/frequencies and not the genotypes? Or is the logistic regression always performed on the genotypes? Does PLINK also calculate it on the genotypes? Does it make sense to calculate a 2×3/2×2 contingency table first? Or is PLINK calculating the contingency tables and then does a logistic regression?