View source: R/plot_p_spline_phe.R
plot_p_spline_phe | R Documentation |
Plotting function for the P_spline model
plot_p_spline_phe(
X,
Y,
p_spline_fit,
target_dist_between_knots = 5,
spline_degree = 3,
ylim = 5000
)
X |
date vector. |
Y |
Numeric vector of number of positive samples |
target_dist_between_knots |
sets the number of days between adjacent knots (default = 5) |
spline_degree |
sets the degree of the splines (default = 3) |
ylim |
sets the ylimit of the plot created |
p_splinefit |
fit of the model to the same set o data using reactidd::stan_p_spline_phe() |
A list of the created plot, the raw data and CI's used in the plot, the raw data for the model fit in the plot.
Plot of the model fit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.