evaluate_game: Compare two models using Bayes factor

Description Usage Arguments Value References See Also

View source: R/tournament.R

Description

evaluate_game uses the Bayes factor of two models to determine whether one model favors the other

Usage

1
evaluate_game(m, winning_criteria = 0.75)

Arguments

m

a list of two model objects fit on the same dataset. Model objects allowed are "gplm", "gplm0", "plm" and "plm0"

winning_criteria

a numerical value between 0 and 1 which sets the threshold for which the probability of the first model in the list, given the data and calculated using Bayes factor, must exceed for it to be declared the better model of the two. This value defaults to 0.75.

Value

A data.frame with the summary of the results of the game

References

B. Hrafnkelsson, H. Sigurdarson, S.M. Gardarsson, 2020, Generalization of the power-law rating curve using hydrodynamic theory and Bayesian hierarchical modeling. arXiv preprint 2010.04769.

See Also

tournament


bdrc documentation built on July 28, 2021, 5:10 p.m.