processMI.fit.mult.impute: processMI.fit.mult.impute

View source: R/processMI.r

processMI.fit.mult.imputeR Documentation

processMI.fit.mult.impute

Description

Process Special Multiple Imputation Output From fit.mult.impute

Usage

## S3 method for class 'fit.mult.impute'
processMI(
  object,
  which = c("validate", "calibrate", "anova"),
  plotall = TRUE,
  nind = 0,
  prmi = TRUE,
  ...
)

Arguments

object

a fit object created by fit.mult.impute

which

specifies which component of the extra output should be processed

plotall

set to FALSE when which='calibrate' to suppress having ggplot render a graph showing calibration curves produced separately for all the imputations

nind

set to a positive integer to use base graphics to plot a matrix of graphs, one each for the first nind imputations, and the overall average calibration curve at the end

prmi

set to FALSE to not print imputation corrections for anova

...

ignored

Details

Processes a funresults object stored in a fit object created by fit.mult.impute when its fun argument was used. These objects are typically named validate or calibrate and represent bootstrap or cross-validations run separately for each imputation. See this for a case study.

For which='anova' assumes that the fun given to fit.mult.impute runs anova(fit, test='LR') to get likelihood ratio tests, and that method='stack' was specified also so that a final anova was run on the stacked combination of all completed datasets. The method of Chan and Meng (2022) is used to obtain overall likelihood ratio tests, with each line of the anova table getting a customized adjustment based on the amount of missing information pertaining to the variables tested in that line. The resulting statistics are chi-square and not $F$ statistics as used by Chan and Meng. This will matter when the estimated denominator degrees of freedom for a variable is small (e.g., less than 50). These d.f. are reported so that user can take appropriate cautions such as increasing n.impute for aregImpute.

Value

an object like a validate, calibrate, or anova result obtained when no multiple imputation was done. This object is suitable for print and plot methods for these kinds of objects.

Author(s)

Frank Harrell

See Also

Hmisc::fit.mult.impute()


rms documentation built on Sept. 11, 2024, 7:51 p.m.