plot_exp_model_phe: Bayesian exponential model using stan

View source: R/plot_exp_model_phe.r

plot_exp_model_pheR Documentation

Bayesian exponential model using stan

Description

Bayesian exponential model using stan

Usage

plot_exp_model_phe(
  X,
  Y,
  fit_exp,
  X_model,
  color_list = as.list(rep("red", length(X_model))),
  ylim = 5000
)

Arguments

X

date vector of data you want on the graph

Y

Numeric vector of number of positive samples

fit_exp

either fitted exponential model using reactidd::stan_exp_model_phe() or list of such models

X_model

the X data for the fittd model or a list() of the X data for the fitted models (length must match number of models)

color_list

list() of color characters defaults to list("red") of same length as number of models.

ylim

sets the y limit of the plot

Value

A ggplot of the exp model/models, the raw data and binomial CI's and the raw data of the model fits used in plotting (all in list format)


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