Re: [R] help with formula for clogit

2011-11-07 Thread Weidong Gu
clogit needs to spell out formula plus strata, you can try modify the code ... d2=d[,c(mols,'group','Age','strata')] fo<-as.formula(paste(paste('group~','Age',sep=''),'strata(strata)',sep='+')) log.reg<-clogit(fo,data=d2) ... Weidong On Mon, Nov 7, 2011 at 10:19 AM, 1Rnwb wrote: > I would like t

Re: [R] help with formula for clogit

2011-11-07 Thread Thomas Lumley
On Tue, Nov 8, 2011 at 4:19 AM, 1Rnwb wrote: > I would like to know if clogit function can be used as below > clogit(group~., data=dataframe) > Not usefully. That syntax does not specify a strata() term, which is why the computation is very slow and probably not what you intended. -thomas -