Learn R Programming

loo (version 0.1.3)

print.loo: Print and plot methods

Description

Print and plot methods

Usage

## S3 method for class 'loo':
print(x, ..., digits = 1, warn = TRUE, plot_k = FALSE)

## S3 method for class 'compare.loo': print(x, ..., digits = 1)

## S3 method for class 'loo': plot(x, ..., label_points = FALSE)

Arguments

x
A list with class 'loo' (as returned by the loo function or, for print only, the waic function). For print, x ca
...
Ignored for print. For plot you can use ... to pass arguments to text if label_points = TRUE.
digits
Passed to round.
warn
Logical. If TRUE (the default), a warning message will be printed if any estimates for the Pareto shape parameter $k$ are problematic. See section PSIS-LOO in loo-package. Ignored if
plot_k
Logical. If TRUE the estimates of $k$ are plotted. Ignored if x was generated by waic. To just plot $k$ without printing use plot(x).
label_points
Logical. If TRUE the observation numbers corresponding to any values of $k$ greater than 0.5 will be displayed in the plot. Any arguments specified in ... will be passed to text

Value

  • The print methods return x invisibly.