plot.dynamitefit {dynamite}R Documentation

Traceplots and Density Plots for a dynamitefit Object

Description

Produces the traceplots and the density plots of the model parameters.

Usage

## S3 method for class 'dynamitefit'
plot(x, parameters = NULL, type = NULL, responses = NULL, ...)

Arguments

x

[dynamitefit]
The model fit object.

parameters

[charecter()]\ Parameter name(s) for which the plots should be drawn. Possible options can be found with the function get_parameter_names(). The default is all parameters ofa specific type for all responses, which can lead to too crowded a plot.

type

[character(1)]
Type of the parameter for which the plots should be drawn. Possible options can be found with the function get_parameter_types(). Ignored if the argument parameters is supplied.

responses

[character()]
Response(s) for which the plots should be drawn. Possible options are unique(x$priors$response). Default is all responses. Ignored if the argument parameters is supplied.

...

Not used..

Value

A ggplot object.

See Also

Drawing plots plot_betas(), plot_deltas(), plot_lambdas(), plot_nus(), plot_psis()

Examples

data.table::setDTthreads(1) # For CRAN
plot(gaussian_example_fit, type = "beta")


[Package dynamite version 1.4.9 Index]