The objective of this study is to develop and validate various patient-level prediction models for total knee replacement patients.
This repo contains the simple models needed for validation of the Oxford Ehden study-athon simple models to predict mortality following a total knee replacement
Validates the full models developed in Thin and OptumDod as well as a user designed simple and a data driven simple developed in optumDod
Included in the package are 4 models they are:
oxfordKneeValidation is an R package.
Requires R (version 3.3.0 or higher).
```r library(oxfordKneeValidation)
options(andromedatempdir = "S://temp//tempandromeda")
outputFolder <- "./tkrSimpleResults"
dbms <- user <- pw <- server <- port <-
connectionDetails <- DatabaseConnector::createConnectionDetails(dbms = dbms, server = server, user = user, password = pw, port = port)
cdmDatabaseSchema <- ''
cdmDatabaseName <- ''
cohortDatabaseSchema <- '' oracleTempSchema <- NULL
cohortTable <- 'tkrSimpleTest'
createCohorts = FALSE predictTkrSimple = TRUE runValidation = TRUE
packageResults = TRUE
minCellCount <- 5 sampleSize <- NULL
usePackageCohorts <- TRUE newTargetCohortId <- NULL newOutcomeCohortId <- NULL newCohortDatabaseSchema <- NULL newCohortTable <- NULL
riskWindowStart <- 0 startAnchor <- 'cohort start' riskWindowEnd <- 90 endAnchor <- 'cohort start' firstExposureOnly <- F removeSubjectsWithPriorOutcome <- F priorOutcomeLookback <- 99999 requireTimeAtRisk <- F minTimeAtRisk <- 1 includeAllOutcomes <- T
execute(connectionDetails = connectionDetails, usePackageCohorts = usePackageCohorts, newTargetCohortId = newTargetCohortId, newOutcomeCohortId = newOutcomeCohortId, newCohortDatabaseSchema = newCohortDatabaseSchema, newCohortTable = newCohortTable, cdmDatabaseSchema = cdmDatabaseSchema, cdmDatabaseName = cdmDatabaseName, cohortDatabaseSchema = cohortDatabaseSchema, cohortTable = cohortTable, sampleSize = sampleSize, riskWindowStart = riskWindowStart, startAnchor = startAnchor, riskWindowEnd = riskWindowEnd, endAnchor = endAnchor, firstExposureOnly = firstExposureOnly, removeSubjectsWithPriorOutcome = removeSubjectsWithPriorOutcome, priorOutcomeLookback = priorOutcomeLookback, requireTimeAtRisk = requireTimeAtRisk, minTimeAtRisk = minTimeAtRisk, includeAllOutcomes = includeAllOutcomes, outputFolder = outputFolder, createCohorts = createCohorts, predictTkrSimple = predictTkrSimple, runValidation = runValidation, packageResults = packageResults, minCellCount = minCellCount, verbosity = "INFO", cdmVersion = 5)
```
oxfordKneeValidation is licensed under Apache License 2.0
oxfordKneeValidation is being developed in R Studio.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.