Create SCCS simulation settings
createSccsSimulationSettings(
meanPatientTime = 4 * 365,
sdPatientTime = 2 * 365,
minAge = 18 * 365,
maxAge = 65 * 365,
minBaselineRate = 0.001,
maxBaselineRate = 0.01,
minCalendarTime = as.Date("2000-01-01"),
maxCalendarTime = as.Date("2010-01-01"),
eraIds = c(1, 2),
patientUsages = c(0.2, 0.1),
usageRate = c(0.01, 0.01),
usageRateSlope = c(0, 0),
meanPrescriptionDurations = c(14, 30),
sdPrescriptionDurations = c(7, 14),
simulationRiskWindows = list(createSimulationRiskWindow(relativeRisks = 1),
createSimulationRiskWindow(relativeRisks = 1.5)),
includeAgeEffect = TRUE,
ageKnots = 5,
includeSeasonality = TRUE,
seasonKnots = 5,
includeCalendarTimeEffect = TRUE,
calendarTimeKnots = 5,
calendarTimeMonotonic = FALSE,
outcomeId = 10
)
An object of type SccsSimulationSettings
.
Mean number of observation days per patient.
Standard deviation of the observation days per patient.
The minimum age in days.
The maximum age in days.
The minimum baseline rate (per day).
The maximum baseline rate (per day).
The minimum date patients are to be observed.
The maximum date patients are to be observed.
The IDs for the covariates to be generated.
The fraction of patients that use the drugs.
The rate of prescriptions per person that uses the drug.
The change in the usage rate from one day to the next.
usageRate
is the intercept at day 0
The mean duration of a prescription, per drug.
The standard deviation of the duration of a prescription, per drug.
One or a list of objects of type SimulationRiskWindow
as
created using the createSimulationRiskWindow()
function.
function.
Include an age effect for the outcome?
Number of knots in the age spline.
Include seasonality for the outcome?
Number of knots in the seasonality spline.
Include a calendar time effect for the outcome?
Number of knots in the calendar time spline.
Should the calender time effect be monotonic?
The ID to be used for the outcome.
Create an object of settings for an SCCS simulation.