calculate_ranks_draws_matrix: Calculate ranks given variable values within a posterior...

View source: R/results.R

calculate_ranks_draws_matrixR Documentation

Calculate ranks given variable values within a posterior distribution.

Description

When there are ties (e.g. for discrete variables), the rank is currently drawn stochastically among the ties. NA is assumed to be potentially equal to any value (Issue #78)

Usage

calculate_ranks_draws_matrix(variables, dm, params = NULL)

Arguments

variables

a vector of values to check

dm

draws_matrix of the fit (assumed to be already thinned if that was necessary)

params

DEPRECATED. Use variables instead.


hyunjimoon/SBC documentation built on March 15, 2024, 3:18 a.m.