Last updated: 2023-04-21

Checks: 6 1

Knit directory: paperscripts/

This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


The R Markdown file has unstaged changes. To know which version of the R Markdown file created these results, you’ll want to first commit it to the Git repo. If you’re still working on the analysis, you can ignore this warning. When you’re finished, you can run wflow_publish to commit the R Markdown file and build the HTML.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(20230311) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version 0f53001. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    analysis/figure/cumulativeinc.Rmd/.DS_Store
    Ignored:    output/amit_df_bp.rds
    Ignored:    output/dfukbaseline.rds
    Ignored:    output/plotslitCI.rds
    Ignored:    output/zph_all.rds
    Ignored:    output/zph_amit_EQ.rds

Untracked files:
    Untracked:  analysis/figure/cumulativeinc.Rmd/gallpce-1.png
    Untracked:  analysis/figure/cumulativeinc.Rmd/gallprs-1.png
    Untracked:  analysis/figure/cumulativeinc.Rmd/genroll-1.png
    Untracked:  analysis/figure/cumulativeinc.Rmd/gmidpce-1.png
    Untracked:  analysis/figure/cumulativeinc.Rmd/gmidpcecat-1.png
    Untracked:  analysis/figure/cumulativeinc.Rmd/gmidprs-1.png
    Untracked:  analysis/figure/cumulativeinc.Rmd/goldpce-1.png
    Untracked:  analysis/figure/cumulativeinc.Rmd/goldpcecat-1.png
    Untracked:  analysis/figure/cumulativeinc.Rmd/goldprs-1.png
    Untracked:  analysis/figure/cumulativeinc.Rmd/gyoungpce-1.png
    Untracked:  analysis/figure/cumulativeinc.Rmd/gyoungpcecat-1.png
    Untracked:  analysis/figure/cumulativeinc.Rmd/gyoungprs-1.png
    Untracked:  analysis/myfile.pdf
    Untracked:  unnamed-chunk-8-1.png

Unstaged changes:
    Modified:   .DS_Store
    Modified:   .Rhistory
    Modified:   analysis/.DS_Store
    Modified:   analysis/cumulativeinc.Rmd
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-10-1.png
    Modified:   analysis/figure/cumulativeinc.Rmd/unnamed-chunk-11-1.png
    Modified:   analysis/figure/cumulativeinc.Rmd/unnamed-chunk-12-1.png
    Modified:   analysis/figure/cumulativeinc.Rmd/unnamed-chunk-13-1.png
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-14-1.png
    Modified:   analysis/figure/cumulativeinc.Rmd/unnamed-chunk-16-1.png
    Modified:   analysis/figure/cumulativeinc.Rmd/unnamed-chunk-17-1.png
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-18-1.png
    Modified:   analysis/figure/cumulativeinc.Rmd/unnamed-chunk-19-1.png
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-2-1.png
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-2-2.png
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-2-3.png
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-20-1.png
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-21-1.png
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-22-1.png
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-4-1.png
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-4-2.png
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-4-3.png
    Deleted:    analysis/figure/cumulativeinc.Rmd/unnamed-chunk-6-1.png
    Modified:   analysis/figure/cumulativeinc.Rmd/unnamed-chunk-7-1.png
    Modified:   analysis/figure/cumulativeinc.Rmd/unnamed-chunk-8-1.png
    Modified:   analysis/figure/cumulativeinc.Rmd/unnamed-chunk-9-1.png

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/cumulativeinc.Rmd) and HTML (docs/cumulativeinc.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
Rmd 0f53001 Your Name 2023-04-21 update
html 0f53001 Your Name 2023-04-21 update
Rmd cbb061f Your Name 2023-04-21 update
html cbb061f Your Name 2023-04-21 update
Rmd 86fbc12 Your Name 2023-04-21 update
html 86fbc12 Your Name 2023-04-21 update
Rmd e753aa8 Your Name 2023-04-20 Update
html e753aa8 Your Name 2023-04-20 Update

Introduction

Cumulative incidence plot

Version Author Date
e753aa8 Your Name 2023-04-20

All age plots

– Because we are using all individuals, Event time (age in years) is on the X axis, because time since enrollment would treat the 12 years from 50-62 as 70-82. – First we do for all and stratify by PRS category

Now we stratify by PCE category, again for all

Now we plot cumulative incidence by age of enrollment

Age cat specific plots

Here we break into three age groups and stratify by PRS, asking about resolution by PRS:

<55

55-65

>65

Here we do the same for PCE:age normalized percentile

  • here we standardize PCE distribution within each age to ~N(0,1)
  • we look at bottom 20%, mid 20%, and top 20%
  • I also do the same for nominal 10 year category with caveat that 10 year risk category is a low number in young folks

<55

55-65

>65

Age specific with PCE category

<55

55-65

65 +

HEre are the age percentiles of PCE risk:

        0%  10%  20%   30%   40%   50%   60%   70%   80%   90%  100%
<55   1.00 1.00 1.00  1.22  1.60  2.08  2.73  3.69  5.12  7.47 53.31
55-65 1.00 2.71 3.63  4.54  5.56  6.85  8.55 10.79 13.56 17.63 79.05
65+   2.19 7.21 8.71 10.14 11.81 13.93 16.64 19.71 23.18 28.00 74.77

age of event by prs.rank

Version Author Date
86fbc12 Your Name 2023-04-21
e753aa8 Your Name 2023-04-20

R version 4.2.1 (2022-06-23)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur ... 10.16

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] gridExtra_2.3   survminer_0.4.9 ggpubr_0.4.0    dplyr_1.0.10   
[5] ggplot2_3.4.1   survival_3.4-0 

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.9        lattice_0.20-45   tidyr_1.2.1       zoo_1.8-11       
 [5] assertthat_0.2.1  rprojroot_2.0.3   digest_0.6.29     utf8_1.2.2       
 [9] R6_2.5.1          backports_1.4.1   evaluate_0.17     highr_0.9        
[13] pillar_1.8.1      rlang_1.0.6       rstudioapi_0.14   data.table_1.14.2
[17] whisker_0.4       car_3.1-0         jquerylib_0.1.4   Matrix_1.5-1     
[21] rmarkdown_2.17    labeling_0.4.2    splines_4.2.1     stringr_1.4.1    
[25] gridtext_0.1.4    munsell_0.5.0     broom_1.0.1       compiler_4.2.1   
[29] httpuv_1.6.6      xfun_0.33         pkgconfig_2.0.3   mgcv_1.8-40      
[33] htmltools_0.5.3   ggtext_0.1.1      tidyselect_1.2.0  tibble_3.1.8     
[37] km.ci_0.5-6       workflowr_1.7.0   fansi_1.0.3       withr_2.5.0      
[41] later_1.3.0       grid_4.2.1        nlme_3.1-159      jsonlite_1.8.2   
[45] xtable_1.8-4      gtable_0.3.1      lifecycle_1.0.3   DBI_1.1.3        
[49] git2r_0.30.1      magrittr_2.0.3    KMsurv_0.1-5      scales_1.2.1     
[53] cli_3.4.1         stringi_1.7.8     cachem_1.0.6      carData_3.0-5    
[57] farver_2.1.1      ggsignif_0.6.4    fs_1.5.2          promises_1.2.0.1 
[61] xml2_1.3.3        bslib_0.4.0       survMisc_0.5.6    generics_0.1.3   
[65] vctrs_0.5.2       cowplot_1.1.1     tools_4.2.1       glue_1.6.2       
[69] purrr_0.3.5       abind_1.4-5       fastmap_1.1.0     yaml_2.3.5       
[73] colorspace_2.0-3  rstatix_0.7.0     knitr_1.40        sass_0.4.2