Skip to contents

Note that as this function tries to draw a plot containing effects of all groups, the plot will become messy with large number of groups.

Usage

plot_nus(x, parameters = NULL, responses = NULL, level = 0.05, groups = 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 function get_parameter_names(types = "delta").

responses

[character()]
Response(s) for which the coefficients should be drawn. Possible options are elements of unique(x$priors$response), and the default is this whole vector.

level

[numeric(1)]
Level for posterior intervals. Default is 0.05, leading to 90% intervals.

groups

Group name(s) for which the plots should be drawn. Default is all groups.

Value

A ggplot object.

Examples

data.table::setDTthreads(1) # For CRAN
plot_nus(gaussian_example_fit)