[R] Cox Proportional Models and Haplotypes
mcneney at gmail.com
Fri Oct 29 17:51:22 CEST 2010
You could do a weighted cox ph model, with possible haplotype
configurations for each subject weighted by their posterior
probabilities given genotype data.
Are your markers SNPs? If so you can use a utility function from the
hapassoc package to get started. For example, if your data is in a
dataframe dat, with nsnp SNPs in the last nsnps columns, you could
create an augmented data frame (augmented by pseudo-individuals for
each subject with ambiguous phase) with
and then use coxph with augdat as the data frme and wts as the
weights. See ?pre.hapassoc for details on accepted formats for the SNP
Statistics and Actuarial Science
Simon Fraser University
On Tue, Oct 26, 2010 at 12:01 PM, David Winsemius
<dwinsemius at comcast.net> wrote:
> On Oct 26, 2010, at 8:57 AM, sr500 wrote:
>> I was wondering if anyone knew of a function that fits haplotype data into
>> cox proportional hazard model. I have computed my Haplotype frequencies
>> using the haplo.stats package. I have also been using the haplo.glm
>> but this is a linear regression and is not quite what I am looking for…
> I think you need to describe your data situation more completely and ideally
> would include a small extract of your data to allow testing and
> illustration. Cox proportional hazards models are typically used to analyze
> time to event data and you have not alluded to any "events".
>> Thank you very much,
>> View this message in context:
>> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help