plot_exp_model: Bayesian exponential model using stan

View source: R/plot_exp_model.R

plot_exp_modelR Documentation

Bayesian exponential model using stan

Description

Bayesian exponential model using stan

Usage

plot_exp_model(
  X,
  Y,
  N,
  fit_exp,
  X_model,
  color_list = as.list(rep("red", length(X_model))),
  ylim = 2
)

Arguments

X

date vector of data you want on the graph

Y

Numeric vector of number of positive samples

N

Numeric vector of total number of samples

fit_exp

either fitted exponential model using reactidd::stan_exp_model() 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 given for 'fit_exp')

color_list

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

ylim

sets the ylimit 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.