predict_and_evaluate {SLOS} | R Documentation |
Predict using the SLOS model
Description
This function makes predictions using the pre-trained SLOS model and evaluates it based on RMSE, MAE, and R2 values.
Usage
predict_and_evaluate(data)
Arguments
data |
A data frame or matrix of new data for prediction. |
Value
A list containing the predictions made on the input data, a data frame combining the observed values and predictions side by side, and the RMSE, MAE, and R2.
Examples
# Load example data
data(SampledData)
# Make predictions and evaluate
results <- predict_and_evaluate(sampled_data)
# View results
print(results$RMSE)
print(results$MAE)
print(results$R2)
[Package SLOS version 1.0.1 Index]