This function is used inside the objective function to return model fit. Default loss function is MSE.

dorem_loss_func(obs, pred, weights, na.rm)

obs | Numeric vector. Observed values |
---|---|

pred | Numeric vector. Predicted values |

weights | Numeric vector. Weights for weighting residuals |

na.rm | Logical |

Mean Squared Error (MSE)

#> [1] 8.5