Function to calculate the accuract of an estimator, given its estimates and the observed outcomes.

Evaluation.accuracy(data.observed, data.predicted)

Arguments

data.observed

the true data (Y).

data.predicted

the Y outcome from the estimator .

Value

double the calculated accuracy.