rmse: Root mean squared error

View source: R/rmse.R

rmseR Documentation

Root mean squared error

Description

Computes the root mean-squared error between y and yhat, given by sqrt(mean((y - yhat)^2)).

Usage

rmse(y, yhat)

Arguments

y

the realized outcomes

yhat

the predicted outcomes

Value

Returns the root mean-squared error.

Examples


rmse(c(1,1,1), c(1,0,2))

SoftBart documentation built on June 8, 2025, 9:40 p.m.