A package for running the OHDSI network study to externally validate 5 existing stroke risk prediction models using the PatientLevelPrediction framework
ExistingStrokeRiskExternalValidation is an R package.
Requires R (version 3.3.0 or higher).
```r #================================= STEP 1: INSTALL PACKAGES ================================== install.packages("devtools") devtools::install_github("OHDSI/PatientLevelPrediction") devtools::install_github("OHDSI/PredictionComparison") devtools::install_github("ohdsi-studies/ExistingStrokeRiskExternalValidation")
library('ExistingStrokeRiskExternalValidation')
viewModels()
options(fftempdir = 'T:/yourFftemp') dbms <- yourDbms user <- yourUsername pw <-yourPassword server <- Sys.getenv('server') port <- Sys.getenv('port') connectionDetails <- DatabaseConnector::createConnectionDetails(dbms = dbms, server = server, user = user, password = pw, port = port)
databaseName = 'friendlyDatabaseName' cdmDatabaseSchema <- 'yourCdmDatabaseSchema' cohortDatabaseSchema <- 'yourCohortDatabaseSchema' cohortTable <- 'existingStrokeVal' outputLocation <- 'C:/existingStrokeVal'
ExistingStrokeRiskExternalValidation::main( connectionDetails=connectionDetails, oracleTempSchema = NULL, databaseName=databaseName, cdmDatabaseSchema=cdmDatabaseSchema, cohortDatabaseSchema=cohortDatabaseSchema, outputLocation=outputLocation, cohortTable=cohortTable, createCohorts = T, runAtria = T, runFramingham = T, runChads2 = T, runChads2Vas = T, runQstroke = T, summariseResults = T, packageResults = T, N=10)
submitResults(exportFolder = file.path(outputLocation,'export',paste0(databaseName,'.zip') ), keyLocation, userName)
```
ExistingStrokeRiskExternalValidation is licensed under Apache License 2.0
ExistingStrokeRiskExternalValidation is being developed in R Studio.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.