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, ...)
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.Predictions or a list containing predictions and standard errors.
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.
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).
Useful links