Compute the scores given the prediction
Usage
compute_score_given_pred(
Y_N_1_thin,
Y_N_2_thin,
y_data,
group_data,
merge_groups = FALSE,
merged_group_name = NULL,
metric = NULL
)Arguments
- Y_N_1_thin
posterior predictive draws (rows = observations, columns = samples)
- Y_N_2_thin
posterior predictive draws (rows = observations, columns = samples)
- y_data
a vector of length n_obs
- group_data
a vector of length n_obs
- metric
optional custom metric function used to combine group-wise values before scoring
