View source: R/predict.hyper_gam.R
predict.hyper_gam | R Documentation |
Prediction of hyper_gam model.
## S3 method for class 'hyper_gam'
predict(
object,
newdata = object$data,
sign_adjusted = TRUE,
sgn = if (sign_adjusted) sign(cor_xy(object, probs = 0.5)) else 1,
...
)
object |
an hyper_gam model |
newdata |
test hyperframe, with at least
the response |
sign_adjusted |
logical scalar, default |
sgn |
(internal use) numeric scalar, either |
... |
additional parameters, currently not in use. |
Function predict.hyper_gam()
computes
the sign-adjusted gam model prediction.
The sign-adjustment ensures
that the return
is positively associated with the training hypercolumn X
at the selected tabulating grid.
Function predict.hyper_gam()
returns a
double vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.