Description Usage Arguments Details Value
View source: R/chads2vasModel.R
Apply the existing model CHADs2vas using the standardised framework
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | chads2vasModel(
connectionDetails,
cdmDatabaseSchema,
cohortDatabaseSchema,
outcomeDatabaseSchema,
cohortTable,
outcomeTable,
cohortId,
outcomeId,
oracleTempSchema = NULL,
riskWindowStart = 1,
startAnchor = "cohort start",
riskWindowEnd = 365,
endAnchor = "cohort start",
endDay = -1,
requireTimeAtRisk = T,
minTimeAtRisk = 364,
includeAllOutcomes = T,
firstExposureOnly = F,
removePriorOutcome = T,
recalibrate = T,
calibrationPopulation = NULL
)
|
connectionDetails |
The connection details for extracting the data |
cdmDatabaseSchema |
A string specifying the database containing the cdm |
cohortDatabaseSchema |
A string specifying the database containing the target population cohort |
outcomeDatabaseSchema |
A string specifying the database containing the outcome cohort |
cohortTable |
A string specifying the table containing the target population cohort |
outcomeTable |
A string specifying the table containing the outcome cohort |
cohortId |
An iteger specifying the cohort id for the target population cohorts |
outcomeId |
An iteger specifying the cohort id for the outcome cohorts |
oracleTempSchema |
The temp schema require is using oracle |
riskWindowStart |
The start of the period to predict the risk of the outcome occurring start relative to the target cohort start date |
startAnchor |
Is the risk start relative to cohort_start or cohort_end |
riskWindowEnd |
The end of the period to predict the risk of the outcome occurring start relative to the target cohort start date |
endAnchor |
Is the risk end relative to cohort_start or cohort_end |
endDay |
The last day relative to index for the covariates |
requireTimeAtRisk |
Require a minimum number of days observed in the time at risk period? |
minTimeAtRisk |
If requireTimeAtRisk is true, the minimum number of days at risk |
includeAllOutcomes |
Whether to include people with outcome who do not satify the minTimeAtRisk |
firstExposureOnly |
Whether to restrict to first target cohort start date if people are in target popualtion multiple times |
removePriorOutcome |
Remove people with prior outcomes from the target population |
recalibrate |
Recalibrate the model on the new data |
calibrationPopulation |
A data.frame of subjectId, cohortStartDate, indexes used to recalibrate the model on new data |
This function applies CHADs2vas to a target cohort and validates the performance
A list containing the model performance and the personal predictions for each subject in the target population
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.