Skip to content

Step function

2 messages · Ashta, Charles C. Berry

#
Hi All,

Does the step function work in this model?  I tried to run the
following model but  no result obtained. The computer is hanging and I
killed the job several times. Below is the code.

library(survival)
m.fit=clogit(y~x1+x2+x3+x4, data=ftest)
summary(m.fit)
final<- step(m.fit)

Thanks in advance.
#
On Fri, 29 Jan 2010, Ashta wrote:

            
You need to "provide commented, minimal, self-contained, reproducible 
code" such as:
which runs just fine.

You have no strata() in your formula. Are you sure you want clogit??

If so, use an idiom like

 	step(fit, scope=list(lower=~strata(stratvar)) )

HTH,

Chuck
Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901