# Example:
ens <- matrix(c(1,2,3, 1,3,2), byrow=TRUE, nrow=2)
ens.ref <- matrix(c(2,2,2, 2,2,2), byrow=TRUE, nrow=2)
obs <- matrix(c(0,0,1, 0,1,0), byrow=TRUE, nrow=2)
FairRpss(ens, ens.ref, obs)
Run the code above in your browser using DataLab