Learn R Programming

PROsetta (version 0.4.1)

compareScores: Compare two sets of scores

Description

compareScores is a helper function for comparing two sets of scores.

Usage

compareScores(left, right, type = c("corr", "mean", "sd", "rmsd", "mad"))

Value

compareScores returns a data.frame containing the comparison results.

Arguments

left

scores on the left side of comparison.

right

scores on the right side of comparison. This is subtracted from 'left'.

type

type of comparisons to include. Accepts corr, mean, sd, rmsd, mad. Defaults to all types.

Examples

Run this code
set.seed(1)
true_theta <- rnorm(100)
theta_est <- true_theta + rnorm(100, 0, 0.3)
compareScores(theta_est, true_theta)

Run the code above in your browser using DataLab