Re: [Rd] coxph and drop1

From: John Fox <>
Date: Mon, 14 Mar 2011 12:52:54 -0400

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 supplied.


John Fox
Sen. William McMaster Prof. of Social Statistics Department of Sociology
McMaster University
Hamilton, Ontario, Canada

On Mon, 14 Mar 2011 11:42:04 -0500
 Terry Therneau <> wrote:
> 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 them reference
> a chi-square distribution. My thought is use these arguments, and add an
> error message "read the help file for drop1.coxph" when the defaults appear.
> Any better suggestions?
> Terry Therneau
> ______________________________________________
> mailing list
> mailing list Received on Mon 14 Mar 2011 - 16:56:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Mar 2011 - 18:50:31 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive