convo_ranks: convolve vector of ranks

Description Usage Arguments Value

View source: R/utils.R

Description

subtracts the pmf with first rank in 'vec' from pmfs with ranks in 'vec' via convolution

Usage

1
convo_ranks(vec, pmfs = char_pmfs)

Arguments

vec

is a vector of sorted numeric ranks

pmfs

is a matrix of pmfs with cols of obs by rank and rows of probs

Value

a matrix of pmfs convolved by subtracting pmf of lowest rank from pmfs with ranks in 'vec'


crumplecup/muddier documentation built on Aug. 18, 2021, 11:02 a.m.