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
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
-
2 matches
Mail list logo