Nonlinear Coefficient of Determination Using `feature_data` Objects
rsquared.RdEstimates the nonlinear R2 from a machine learning model compared to a `feature_data` object.
Arguments
- object
A `feature_data` object.
- ...
Additional arguments passed down to `predict()`.
- model
A fitted model object.
- subset
Subset of the `preproc` dataset (`"all"`, `"train"`, or `"test"`).
- prep
Character argument if transformed data ("transform"), scaled data ("scale"), transformed and scaled data ("both"), or original raw data ("none") will be returned.