Displaying 1 result from an estimated 1 matches for "clmatch2".
Did you mean:
clmatch1
2006 Jul 29
0
Help with clogit in survival - conditional logistic regression
...t;- data.frame(age,case,scc,agescc,count)
# Ungrouping the data as clogit as I can not use weights=count
clmatch1 <- data.frame(lapply(clmatch, function(x)
rep(x,clmatch$count)))[,1:4]
# Sorting by age and case for clogit - I think it is not necessary
ii <- order(clmatch1$age,clmatch1$case)
clmatch2 <- clmatch1[ii,]
clmatch2
clogit(case~scc+agescc+strata(age),data=clmatch2)
-----------------______________________________________
M. Ashraf Chaudhary, Ph.D.
Associate Scientist/Biostatistician
Department of International Health
Johns Hopkins Bloomberg School of Public Health
615 N. Wolfe St...