sim_baseline {eesim} | R Documentation |
Expected baseline health outcomes
Description
Generates expected baseline health outcome counts based on average outcome and desired seasonal and / or long-term trends.
Usage
sim_baseline(n, lambda, trend = "no trend", slope = 1, amp = 0.6,
start.date = "2000-01-01")
Arguments
n |
A numeric value specifying the number of days for which to simulate data |
lambda |
A numeric value specifying the mean for the expected outcomes |
trend |
A character string that specifies the desired trend function. Options are:
See the package vignette for examples of the shapes of these trends. |
slope |
A numeric value specifying the slope of the trend, to be used
with |
amp |
A numeric value specifying the amplitude of the seasonal trend. Must be between -1 and 1. |
start.date |
A date in the format "yyyy-mm-dd" specifying the first day for which to simulate data |
Value
A data frame with the date and expected baseline outcome count for each day of simulated data.
Examples
sim_baseline(n = 5, lambda = 100, trend = "cos1")