Learn R Programming

loo (version 2.8.0)

print.loo: Print methods

Description

Print methods

Usage

# S3 method for loo
print(x, digits = 1, ...)

# S3 method for waic print(x, digits = 1, ...)

# S3 method for psis_loo print(x, digits = 1, plot_k = FALSE, ...)

# S3 method for importance_sampling_loo print(x, digits = 1, plot_k = FALSE, ...)

# S3 method for psis_loo_ap print(x, digits = 1, plot_k = FALSE, ...)

# S3 method for psis print(x, digits = 1, plot_k = FALSE, ...)

# S3 method for importance_sampling print(x, digits = 1, plot_k = FALSE, ...)

Value

x, invisibly.

Arguments

x

An object returned by loo(), psis(), or waic().

digits

An integer passed to base::round().

...

Arguments passed to plot.psis_loo() if plot_k is TRUE.

plot_k

Logical. If TRUE the estimates of the Pareto shape parameter \(k\) are plotted. Ignored if x was generated by waic(). To just plot \(k\) without printing use the plot() method for 'loo' objects.

See Also

pareto-k-diagnostic