predict.svem_model {SVEMnet} | R Documentation |
Predict Method for SVEM Models
Description
Generates predictions from a fitted svem_model
.
Usage
## S3 method for class 'svem_model'
predict(object, newdata, debias = FALSE, se.fit = FALSE, ...)
Arguments
object |
An object of class |
newdata |
A data frame of new predictor values. |
debias |
Logical; default is |
se.fit |
Logical; if |
... |
Additional arguments. |
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.
Value
Predictions or a list containing predictions and standard errors.
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).