View source: R/davids_steepness.R
davids_steepness | R Documentation |
David's scores and steepness with Bayesian flavor
davids_steepness(mat, silent = FALSE, ...)
mat |
square interaction matrix |
silent |
logical, suppress warnings (default is |
... |
additional arguments for |
a list with results of the modelling fitting, containing the following list items:
steepness
a one-column matrix with the posterior samples for steepness. Each row is one iteration.
norm_ds
an matrix with posterior normalized David's scores for each individual. Each column is one individual. Each row is one iteration.
ids
a character vector with individual ID codes as supplied
in mat
diagnostics
a list with information regarding sampling problems
stanfit
the actual stanfit
object
mat
the input matrix
data(dommats, package = "EloRating")
res <- davids_steepness(dommats$elephants, refresh = 0)
plot_steepness(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.