predict.svem_model function

Predict Method for SVEM Models

Predict Method for SVEM Models

Generates predictions from a fitted svem_model.

## S3 method for class 'svem_model' predict(object, newdata, debias = FALSE, se.fit = FALSE, ...)

Arguments

  • object: An object of class svem_model.
  • newdata: A data frame of new predictor values.
  • debias: Logical; default is FALSE.
  • se.fit: Logical; if TRUE, returns standard errors (default is FALSE).
  • ...: Additional arguments.

Returns

Predictions or a list containing predictions and standard errors.

Details

A debiased fit is available (along with the standard fit). This is provided to allow the user to match the output of JMP.\ https://www.jmp.com/support/help/en/18.1/?utm_source=help&utm_medium=redirect#page/jmp/overview-of-selfvalidated-ensemble-models.shtml. The debiasing coefficients are always calculated by SVEMnet(), and the predict() function determines whether the raw or debiased predictions are returned via the debias argument. Default is FALSE based on performance on unpublished simulation studies.

Acknowledgments

Development of this package was assisted by GPT o1-preview, which helped in constructing the structure of some of the code and the roxygen documentation. The code for the significance test is taken from the supplementary material of Karl (2024) (it was handwritten by that author).

  • Maintainer: Andrew T. Karl
  • License: GPL-2 | GPL-3
  • Last published: 2024-12-21

Useful links