plot_p_spline_minimum_density: Plotting function for the P_spline model

View source: R/plot_p_spline_minimum_density.r

plot_p_spline_minimum_densityR Documentation

Plotting function for the P_spline model

Description

Plotting function for the P_spline model

Usage

plot_p_spline_minimum_density(
  X,
  p_spline_fit,
  target_dist_between_knots = 5,
  spline_degree = 3
)

Arguments

X

date vector.

target_dist_between_knots

sets the number of days between adjacent knots (default = 5)

spline_degree

sets the degree of the splines (default = 3)

p_splinefit

fit of the model to the same set of X values using reactidd::stan_p_spline() or reactidd::stan_p_spline_phe()

Value

A list of the created plot, and the list of values used in the histogram.

Plot of the model fit


mrc-ide/reactidd documentation built on May 12, 2024, 11:47 a.m.