Skip to content

Users can download the smoking models previously published and apply it to data mapped to OMOP

Notifications You must be signed in to change notification settings

ohdsi-studies/SmokingModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supplementing claims data analysis using self-reported data to develop a probabilistic phenotype model for current smoking status

Study Status: Complete

  • Analytics use case(s): Patient-Level Prediction
  • Study type: Clinical Application
  • Tags: -
  • Study lead: Jenna Reps
  • Study lead forums tag: jreps
  • Study start date: Jan 1, 2018
  • Study end date: Dec 1, 2018
  • Protocol: -
  • Publications: Paper
  • Results explorer: Shiny App

This package contains the smoking risk model - what is the risk the patient is a current smoker vs non-smoker?

SmokingModel

Users can download the smoking models previously published and apply it to data mapped to OMOP

# install this package to get the smoking model
remotes::install_github('ohdsi-studies/SmokingModel')

# Extract data you want to make the prediction for
# in this example we use simulated data
library(PatientLevelPrediction)
data(
  plpDataSimulationProfile, 
  envir = environment()
  )

sampleSize <- 1500+sample(300,1)
plpData <- simulatePlpData(
  plpDataSimulationProfile, 
  n = sampleSize
  )

# load the smoking model
library(SmokingModel)
smokingRiskModel <- SmokingModel::loadSmokingModel()

# apply the model to new data
pred <- PatientLevelPrediction::predictPlp(
   plpModel = smokingRiskModel, 
   plpData = plpData, 
   population = plpData$cohorts
     )
     
# pred is a data.frame consiting of the plpData$cohorts
# with a new column called 'value' that corresponds to the 
# risk that the patient is a current smoker (0 = 0% and 1 = 100%)

About

Users can download the smoking models previously published and apply it to data mapped to OMOP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages