Resample Fitted Model Objects

DESCRIPTION:

Perform resampling (bootstrap and jackknife) when the data argument is a the output from a modeling function. This function is called internally by , , and their methods, and is not intended to be called directly.

USAGE:

resampMakeFitObjResults(resampCall, fitCall, frame.eval, model.method=NULL) 
resampMakeFitObjResults.censorReg(resampCall, frame.eval) 

REQUIRED ARGUMENTS:

resampCall
a call to or , of the form
bootstrap(fit, ...),
where fit is the output a modeling function, like lm.
fitCall
call to a modeling function. Typically this is the call component or attribute of the fit argument in resampCall.
frame.eval
frame where the data and other objects referenced in resampCall and fitCall can be found. See . Typically the frame of the function that called the resample function.

OPTIONAL ARGUMENTS:

model.method
if the resample function has a method for the fitting routine (for example ), this should contain the name of the generic fitting function ( "glm", for example). In this case it is assumed that the fitting routine has a model.list method (e.g. ), and that the default method for the fitting routine accepts argument method="model.list".

has no such method.

VALUE:

a call to or , in syntax understood by the default method of those functions.

DETAILS:

This function allows bootstrap and jackknife to recognize the syntax

#
bootstrap(fit, ...)
#

where fit is a fitted object (typically output of a modeling function). This function creates and then evaluates a new call with syntax appropriate to the default method of the resample function, making use of model.list methods for fitting routines if they are available. Here, a fitted object is defined to be any object not of class model.list with component or attribute call, and such that call contains a non-null data argument.

Special consideration is given when the fitted object is of class by resampMakeFitObjResults.censorReg because of special issues that arise in the stratified-sampling case, when the object is of class censorRegList.

SEE ALSO:

, , , , , , , ,