Question: Gwas - Case/Control In R?
gravatar for Darren J. Fitzpatrick
9.5 years ago by
Ireland/ United Kingdom
Darren J. Fitzpatrick1.1k wrote:


I wish to run a very simple logistic regression in R on a case/control GWAS set.

I don't want to use an R package just yet as I prefer to know exactly what is going on.

I am thinking that I should do this using the glm() function where:

model <- glm(phenotype~genotype)

My phenotype is simple binary case control data. My problem is I don't understand the use of family and link functions within the glm function.

Should the model be run as above or:

model <- glm(phenotype~genotype, family=binomial())


model <- glm(phenotype~genotype, family=binomial("logit"))

or perhaps none of the above?


R gwas • 4.0k views
ADD COMMENTlink written 9.5 years ago by Darren J. Fitzpatrick1.1k
gravatar for Adrian Cortes
9.5 years ago by
Adrian Cortes530
Brisbane, Australia
Adrian Cortes530 wrote:


You should use:

 model <- glm(phen~genotype, family=binomial).

The logit link function is the default one so no need to specified it; though if you do, the result should be the same.

ADD COMMENTlink written 9.5 years ago by Adrian Cortes530
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1113 users visited in the last hour