createSccsSimulationSettings | R Documentation |
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
)
meanPatientTime |
Mean number of observation days per patient. |
sdPatientTime |
Standard deviation of the observation days per patient. |
minAge |
The minimum age in days. |
maxAge |
The maximum age in days. |
minBaselineRate |
The minimum baseline rate (per day). |
maxBaselineRate |
The maximum baseline rate (per day). |
minCalendarTime |
The minimum date patients are to be observed. |
maxCalendarTime |
The maximum date patients are to be observed. |
eraIds |
The IDs for the covariates to be generated. |
patientUsages |
The fraction of patients that use the drugs. |
usageRate |
The rate of prescriptions per person that uses the drug. |
meanPrescriptionDurations |
The mean duration of a prescription, per drug. |
sdPrescriptionDurations |
The standard deviation of the duration of a prescription, per drug. |
simulationRiskWindows |
One or a list of objects of type |
includeAgeEffect |
Include an age effect for the outcome? |
ageKnots |
Number of knots in the age spline. |
includeSeasonality |
Include seasonality for the outcome? |
seasonKnots |
Number of knots in the seasonality spline. |
includeCalendarTimeEffect |
Include a calendar time effect for the outcome? |
calendarTimeKnots |
Number of knots in the calendar time spline. |
outcomeId |
The ID to be used for the outcome. |
Create an object of settings for an SCCS simulation.
An object of type SccsSimulationSettings
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.