From jfox at mcmaster.ca  Mon Mar 14 17:52:54 2011
From: jfox at mcmaster.ca (John Fox)
Date: Mon, 14 Mar 2011 12:52:54 -0400
Subject: [Rd] coxph and drop1
In-Reply-To: <201103141642.p2EGg45V022656@punchbuggy.mayo.edu>
References: <201103141642.p2EGg45V022656@punchbuggy.mayo.edu>
Message-ID: <web-346112498@cgpsrv2.cis.mcmaster.ca>

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.

Best,
 John

------------------------------------------------
John Fox
Sen. William McMaster Prof. of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
http://socserv.mcmaster.ca/jfox/

On Mon, 14 Mar 2011 11:42:04 -0500
 Terry Therneau <therneau at mayo.edu> 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
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] coxph and drop1
John Fox