Provides predictions from a fitted hierarchical model (`hierNest`) using new data.
Usage
predict_hierNest(
object,
newx,
hier_info,
type = c("link", "response", "coefficients", "nonzero", "class"),
...
)Arguments
- object
A fitted hierNest model object.
- newx
A numeric matrix of new predictor values for prediction.
- hier_info
A numeric matrix with hierarchical grouping information. First column is MDC-level grouping; second column is DRG-level grouping.
- type
Character string specifying the type of prediction required. Options include "link", "response", "coefficients", "nonzero", and "class".
- ...
Additional arguments passed to lower-level prediction methods.