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),
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,
outcomeId = 10
)
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 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.
The ID to be used for the outcome.
An object of type SccsSimulationSettings
.
Create an object of settings for an SCCS simulation.