View source: R/tournament_methods.R
summary.tournament | R Documentation |
Print the summary of a tournament of model comparisons. This function allows for an efficient and fast re-run of the tournament with different methods or winning criteria.
## S3 method for class 'tournament'
summary(object, method = NULL, winning_criteria = NULL, ...)
object |
An object of class "tournament" |
method |
Optional; a string specifying the method to use for the summary. If NULL, uses the method from the original tournament. Options are "WAIC", "DIC", or "PMP". |
winning_criteria |
Optional; specifies new winning criteria for the summary. If NULL, uses the criteria from the original tournament. See Details in |
... |
Not used in this function |
If either method
or winning_criteria
is provided, the function re-runs the tournament with the new parameters using the fitted models.
Prints the summary to the console.
tournament
to run a discharge rating curve tournament and plot.tournament
for visualizing the model comparison
data(krokfors)
set.seed(1)
t_obj <- tournament(Q ~ W, krokfors, num_cores = 2)
summary(t_obj)
# Re-run summary with different method
summary(t_obj, method = "DIC")
# Re-run summary with different winning criteria
summary(t_obj, winning_criteria = "Delta_WAIC > 3")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.