Learn R Programming

gofMC (version 1.1.2)

rmse: rmse

Description

Calculates rmse given vectors for y and y_pred

Usage

rmse(obs, mdl)

Arguments

obs
a vector or matrix of real numbers
mdl
a vector or matrix of real numbers

Value

a vector of numbers with length equal to the number of trials (N)

Examples

Run this code
rmse(c(2:20),c(2:20 + c(rep(0.1,5),rep(-0.2,10),rep(0.3,4))))
mata <- matrix(runif(10000),ncol=5)
matb <- matrix(runif(10000),ncol=5)
rmse(mata, matb)

Run the code above in your browser using DataLab