Re: [R] nested case-control study

2011-03-01 Thread Terry Therneau
1. Using offset(logweight) in coxph is the same as using an offset logweight; statement in SAS, and neither is the same as case weights. 2. For a nested case control, which is what you said you have, the strata controls who is in what risk set. No trickery with start,stop times is needed. It

Re: [R] nested case-control study

2011-02-28 Thread Terry Therneau
Hi, I am wondering if there is a package for doing conditional logistic regression for nested case-control study as described in Estimation of absolute risk from nested case-control data by Langholz and Borgan (1997) where Horvitz-Thompson sampling weight (log of (number in the risk set

Re: [R] nested case-control study

2011-02-28 Thread array chip
. John From: Terry Therneau thern...@mayo.edu Cc: r-help@r-project.org Sent: Mon, February 28, 2011 6:59:23 AM Subject: Re: [R] nested case-control study Hi, I am wondering if there is a package for doing conditional logistic regression for nested case

Re: [R] nested case-control study

2011-02-27 Thread Dennis Murphy
Hi: Using package sos: # install.packages('sos') # if necessary library(sos) findFn('conditional logistic regression') the following appear to be reasonable candidates to start investigating: * clogit() in package survival * clogistic() in package Epi * clogistCalc()in package saws

Re: [R] nested case-control study

2011-02-27 Thread array chip
, February 27, 2011 12:14:25 PM Subject: Re: [R] nested case-control study clogit() takes offsets as part of the formula casestatus ~ predictor +strata(matchedset) +offset(logweight)     -thomas Hi, I am wondering if there is a package for doing conditional logistic regression for nested case-control

[R] nested case-control study

2011-02-26 Thread array chip
Hi, I am wondering if there is a package for doing conditional logistic regression for nested case-control study as described in Estimation of absolute risk from nested case-control data by Langholz and Borgan (1997) where Horvitz-Thompson sampling weight (log of (number in the risk set