data_matrix_rmse: Compute RMSE between data.matrices dm1 and dm2

Description Usage Arguments Value Examples

View source: R/common_tools.R

Description

A data.matrix has observations as rows and variables as columns

Usage

1
data_matrix_rmse(dm1, dm2)

Arguments

dm1

[N,M] numeric, First data.matrix

dm2

[N,M] numeric, Second data.matrix

Value

[1,M] numeric, A vector of RMSE values, one per variable.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
 dm1 <- matrix(rep(1,6),nrow=2)
 dm2 <- matrix(rep(3,6),nrow=2)
 data_matrix_rmse(dm1, dm2)
 
 first = list(dm1, dm1)
 second = list(dm2, dm2)
 (tmp = mapply(data_matrix_rmse, first, second, SIMPLIFY=FALSE))
 
## End(Not run)

cocoreg documentation built on May 31, 2017, 5:18 a.m.