View source: R/plot_p_spline_minimum_density.r
plot_p_spline_minimum_density | R Documentation |
Plotting function for the P_spline model
plot_p_spline_minimum_density(
X,
p_spline_fit,
target_dist_between_knots = 5,
spline_degree = 3
)
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() |
A list of the created plot, and the list of values used in the histogram.
Plot of the model fit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.