prob_rank: Rank rows of a matrix.

View source: R/utils.R

prob_rankR Documentation

Rank rows of a matrix.

Description

Rank the rows of a matrix by decreasing value. So, rank 1 is maximum, rank K is minimum.

Usage

prob_rank(mat)

Arguments

mat

A matrix of samples

Value

A matrix of rank probabilities. Each row is a column in mat, and each column reflects a rank.

Examples

prob_rank(mvnfast::rmvn(1e4, 1:3, diag(1, 3)))

jatotterdell/automaticsims documentation built on Aug. 22, 2024, 10:52 p.m.