Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 2.67 KB

README.md

File metadata and controls

67 lines (52 loc) · 2.67 KB

synPUF

Overview

This package contains a 50 person subset of the CMS 2008-2010 Data Entrepreneurs’ Synthetic Public Use File (DE-SynPUF) from OHDSI.

Lifecycle: experimental

Details

Install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("thewileylab/synPUF")

Example

This is a basic example:

library(synPUF)
suppressMessages(library(tidyverse))
person
#> # A tibble: 50 x 18
#>    person_id gender_concept_… year_of_birth month_of_birth day_of_birth
#>        <int>            <int>         <int>          <int>        <int>
#>  1      3736             8532          1933              2            1
#>  2     10872             8507          1933             11            1
#>  3     10969             8507          1959             12            1
#>  4     18893             8532          1935              3            1
#>  5     25764             8532          1941              4            1
#>  6     27814             8532          1942             12            1
#>  7     28079             8532          1928              6            1
#>  8     31254             8532          1941              4            1
#>  9     37805             8507          1937              6            1
#> 10     40221             8507          1981              8            1
#> # … with 40 more rows, and 13 more variables: birth_datetime <dttm>,
#> #   race_concept_id <int>, ethnicity_concept_id <int>, location_id <int>,
#> #   provider_id <int>, care_site_id <int>, person_source_value <chr>,
#> #   gender_source_value <chr>, gender_source_concept_id <int>,
#> #   race_source_value <chr>, race_source_concept_id <int>,
#> #   ethnicity_source_value <chr>, ethnicity_source_concept_id <int>

Code of Conduct

Please note that the synPUF project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.