Re: [Rd] coxph and drop1

2011-03-14 Thread Terry Therneau
On Mon, 2011-03-14 at 12:52 -0400, John Fox wrote: > Dear Terry, > > Possibly I'm missing something, but since the generic drop1() doesn't have a > test argument, why is there a problem? > > > args(drop1) > function (object, scope, ...) > > If you use match.arg() against test, then the error

Re: [Rd] coxph and drop1

2011-03-14 Thread John Fox
Dear Terry, Possibly I'm missing something, but since the generic drop1() doesn't have a test argument, why is there a problem? > args(drop1) function (object, scope, ...) If you use match.arg() against test, then the error message should be informative if one of the prescribed values isn't s

[Rd] coxph and drop1

2011-03-14 Thread Terry Therneau
A recent question in r-help made me realize that I should add a drop1 method for coxph and survreg. The default does not handle strata() or cluster() properly. However, for coxph the right options for the "test" argument would be likelihood-ratio, score, and Wald; not chisq and F. All of th