mpspline_rmse1: calculate RMSE

View source: R/mpspline.R

mpspline_rmse1R Documentation

calculate RMSE

Description

Calculates Root Mean Squared Error (RMSE) for estimates on a single site

Usage

mpspline_rmse1(s = NULL, p = NULL, var_name = NULL)

Arguments

s

data.frame; data for one site

p

list; estimated spline parameters for one site from mpspline_est1

var_name

length-1 character or length-1 integer denoting the column in site in which target data is stored. If not supplied, the fourth column of the input object is assumed to contain the target data.

Value

length-2 named numeric - RMSE and RMSE scaled against input data's interquartile range.

Note

Useful for comparing the results of varying parameter lam.


mpspline2 documentation built on April 4, 2022, 1:07 a.m.