Last updated: 2023-04-14
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 9703784. 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: output/amit_df_bp.rds
Ignored: output/dfukbaseline.rds
Untracked files:
Untracked: Figs/Fig5/aucplot_cont.tiff
Untracked: Figs/Tables/~$BB_table1_byASCVD.docx
Untracked: Figs/Tables/~$BB_table1_byPRS.docx
Untracked: analysis/Fig5_con.Rmd
Untracked: analysis/newtables.Rmd
Untracked: analysis/thresholding.Rmd
Untracked: output/AUC_cont.csv
Unstaged changes:
Modified: .DS_Store
Modified: Figs/.DS_Store
Modified: Figs/Tables/FHS_table1.docx
Modified: Figs/Tables/FHS_table1_PRS.docx
Modified: Figs/Tables/UKBB_table1.docx
Modified: Figs/Tables/UKBB_table1_byASCVD.docx
Modified: Figs/Tables/UKBB_table1_byPRS.docx
Modified: analysis/.DS_Store
Modified: analysis/table1.Rmd
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/table1.Rmd
) and HTML
(docs/table1.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 | 0c53065 | Your Name | 2023-04-03 | update |
html | 0c53065 | Your Name | 2023-04-03 | update |
Rmd | 7428f52 | Your Name | 2023-03-25 | Update |
html | 7428f52 | Your Name | 2023-03-25 | Update |
Rmd | 1e6ad0f | Your Name | 2023-03-12 | Update |
html | 1e6ad0f | Your Name | 2023-03-12 | Update |
Rmd | af9c4d8 | Your Name | 2023-03-11 | Update |
html | af9c4d8 | Your Name | 2023-03-11 | Update |
Rmd | d644082 | Your Name | 2023-03-11 | Update |
html | d644082 | Your Name | 2023-03-11 | Update |
Rmd | 13b7835 | Your Name | 2023-03-11 | Update |
html | 13b7835 | Your Name | 2023-03-11 | Update |
Rmd | 7ddb13f | Your Name | 2023-03-11 | Update |
html | 7ddb13f | Your Name | 2023-03-11 | Update |
Overall (N=327837) |
|
---|---|
Age (y) | |
Mean (SD) | 56.1 (8.08) |
Median [Min, Max] | 56.9 [38.9, 73.7] |
Sex | |
Male | 141330 (43.1%) |
Female | 186507 (56.9%) |
Polygenic score category | |
Low | 65696 (20.0%) |
Intermediate | 196750 (60.0%) |
High | 65391 (19.9%) |
Systolic blood pressure (mm Hg) | |
Mean (SD) | 140 (20.4) |
Median [Min, Max] | 138 [62.0, 279] |
Total cholesterol (ng/ml) | |
Mean (SD) | 229 (41.4) |
Median [Min, Max] | 226 [69.6, 598] |
High-density lipoprotein (ng/ml) | |
Mean (SD) | 57.2 (14.8) |
Median [Min, Max] | 55.3 [8.74, 170] |
Smoking Status | |
Never | 186591 (56.9%) |
Former | 107377 (32.8%) |
Current | 33869 (10.3%) |
Pooled cohort equation category (10 year risk) | |
<7.5 | 207150 (63.2%) |
7.5-20 | 96775 (29.5%) |
20+ | 23912 (7.3%) |
Low-density lipoprotein (ng/ml) | |
Mean (SD) | 144 (31.9) |
Median [Min, Max] | 142 [31.1, 476] |
Anti-hypertensive | |
No | 286749 (87.5%) |
Yes | 41088 (12.5%) |
<7.5 (N=207150) |
7.5-20 (N=96775) |
20+ (N=23912) |
Overall (N=327837) |
|
---|---|---|---|---|
Age (y) | ||||
Mean (SD) | 52.5 (7.08) | 61.4 (5.83) | 65.4 (3.79) | 56.1 (8.08) |
Median [Min, Max] | 52.2 [38.9, 70.3] | 62.2 [40.2, 71.1] | 66.1 [40.4, 73.7] | 56.9 [38.9, 73.7] |
Sex | ||||
Male | 55003 (26.6%) | 63116 (65.2%) | 23211 (97.1%) | 141330 (43.1%) |
Female | 152147 (73.4%) | 33659 (34.8%) | 701 (2.9%) | 186507 (56.9%) |
Systolic blood pressure (mm Hg) | ||||
Mean (SD) | 133 (17.1) | 148 (18.4) | 166 (19.1) | 140 (20.4) |
Median [Min, Max] | 131 [62.0, 247] | 147 [83.0, 268] | 164 [97.0, 279] | 138 [62.0, 279] |
Total cholesterol (ng/ml) | ||||
Mean (SD) | 224 (40.3) | 237 (41.9) | 235 (42.4) | 229 (41.4) |
Median [Min, Max] | 222 [69.6, 511] | 234 [79.2, 598] | 232 [80.6, 586] | 226 [69.6, 598] |
High-density lipoprotein (ng/ml) | ||||
Mean (SD) | 59.7 (14.8) | 54.0 (13.7) | 48.0 (11.6) | 57.2 (14.8) |
Median [Min, Max] | 58.1 [8.82, 170] | 52.0 [8.74, 156] | 46.4 [10.7, 158] | 55.3 [8.74, 170] |
Smoking Status | ||||
Never | 129984 (62.7%) | 47864 (49.5%) | 8743 (36.6%) | 186591 (56.9%) |
Former | 63295 (30.6%) | 34113 (35.2%) | 9969 (41.7%) | 107377 (32.8%) |
Current | 13871 (6.7%) | 14798 (15.3%) | 5200 (21.7%) | 33869 (10.3%) |
Pooled cohort equation category (10 year risk) | ||||
<7.5 | 207150 (100%) | 0 (0%) | 0 (0%) | 207150 (63.2%) |
7.5-20 | 0 (0%) | 96775 (100%) | 0 (0%) | 96775 (29.5%) |
20+ | 0 (0%) | 0 (0%) | 23912 (100%) | 23912 (7.3%) |
Low-density lipoprotein (ng/ml) | ||||
Mean (SD) | 139 (30.8) | 152 (31.8) | 154 (33.1) | 144 (31.9) |
Median [Min, Max] | 137 [31.1, 369] | 150 [37.0, 377] | 151 [44.4, 476] | 142 [31.1, 476] |
Anti-hypertensive | ||||
No | 191021 (92.2%) | 80971 (83.7%) | 14757 (61.7%) | 286749 (87.5%) |
Yes | 16129 (7.8%) | 15804 (16.3%) | 9155 (38.3%) | 41088 (12.5%) |
Diabetes status | ||||
None | 206613 (99.7%) | 95962 (99.2%) | 22849 (95.6%) | 325424 (99.3%) |
Diabetes Mellitus | 537 (0.3%) | 813 (0.8%) | 1063 (4.4%) | 2413 (0.7%) |
Polygenic score category | ||||
Low | 42166 (20.4%) | 18892 (19.5%) | 4638 (19.4%) | 65696 (20.0%) |
Intermediate | 123405 (59.6%) | 58686 (60.6%) | 14659 (61.3%) | 196750 (60.0%) |
High | 41579 (20.1%) | 19197 (19.8%) | 4615 (19.3%) | 65391 (19.9%) |
Low (N=65696) |
Intermediate (N=196750) |
High (N=65391) |
Overall (N=327837) |
|
---|---|---|---|---|
Age (y) | ||||
Mean (SD) | 56.1 (8.14) | 56.2 (8.07) | 55.7 (8.05) | 56.1 (8.08) |
Median [Min, Max] | 56.8 [39.2, 71.1] | 57.0 [38.9, 73.7] | 56.3 [40.0, 71.2] | 56.9 [38.9, 73.7] |
Sex | ||||
Male | 28757 (43.8%) | 85194 (43.3%) | 27379 (41.9%) | 141330 (43.1%) |
Female | 36939 (56.2%) | 111556 (56.7%) | 38012 (58.1%) | 186507 (56.9%) |
Systolic blood pressure (mm Hg) | ||||
Mean (SD) | 139 (20.3) | 140 (20.4) | 141 (20.4) | 140 (20.4) |
Median [Min, Max] | 137 [62.0, 279] | 138 [69.0, 261] | 139 [78.0, 245] | 138 [62.0, 279] |
Total cholesterol (ng/ml) | ||||
Mean (SD) | 222 (40.7) | 229 (41.1) | 234 (42.1) | 229 (41.4) |
Median [Min, Max] | 220 [69.6, 506] | 226 [70.7, 586] | 232 [79.2, 598] | 226 [69.6, 598] |
High-density lipoprotein (ng/ml) | ||||
Mean (SD) | 57.6 (14.9) | 57.1 (14.7) | 56.8 (14.7) | 57.2 (14.8) |
Median [Min, Max] | 55.7 [8.74, 158] | 55.3 [8.82, 170] | 54.9 [14.5, 153] | 55.3 [8.74, 170] |
Smoking Status | ||||
Never | 37823 (57.6%) | 111650 (56.7%) | 37118 (56.8%) | 186591 (56.9%) |
Former | 21143 (32.2%) | 64919 (33.0%) | 21315 (32.6%) | 107377 (32.8%) |
Current | 6730 (10.2%) | 20181 (10.3%) | 6958 (10.6%) | 33869 (10.3%) |
Pooled cohort equation category (10 year risk) | ||||
<7.5 | 42166 (64.2%) | 123405 (62.7%) | 41579 (63.6%) | 207150 (63.2%) |
7.5-20 | 18892 (28.8%) | 58686 (29.8%) | 19197 (29.4%) | 96775 (29.5%) |
20+ | 4638 (7.1%) | 14659 (7.5%) | 4615 (7.1%) | 23912 (7.3%) |
Low-density lipoprotein (ng/ml) | ||||
Mean (SD) | 139 (31.4) | 144 (31.7) | 149 (32.4) | 144 (31.9) |
Median [Min, Max] | 137 [31.1, 349] | 142 [32.6, 476] | 147 [37.5, 379] | 142 [31.1, 476] |
Anti-hypertensive | ||||
No | 57623 (87.7%) | 172471 (87.7%) | 56655 (86.6%) | 286749 (87.5%) |
Yes | 8073 (12.3%) | 24279 (12.3%) | 8736 (13.4%) | 41088 (12.5%) |
Diabetes status | ||||
None | 65155 (99.2%) | 195375 (99.3%) | 64894 (99.2%) | 325424 (99.3%) |
Diabetes Mellitus | 541 (0.8%) | 1375 (0.7%) | 497 (0.8%) | 2413 (0.7%) |
Overall (N=3660) |
|
---|---|
Age (y) | |
Mean (SD) | 35.9 (10.3) |
Median [Min, Max] | 35.0 [9.00, 70.0] |
Sex | |
Male | 1817 (49.6%) |
Female | 1843 (50.4%) |
Systolic blood pressure (mm Hg) | |
Mean (SD) | 122 (16.5) |
Median [Min, Max] | 120 [78.0, 240] |
Total cholesterol (ng/ml) | |
Mean (SD) | 198 (39.2) |
Median [Min, Max] | 193 [100, 457] |
High-density lipoprotein (ng/ml) | |
Mean (SD) | 51.9 (16.0) |
Median [Min, Max] | 50.0 [14.0, 132] |
Smoking Status | |
Never | 2048 (56.0%) |
Current | 1612 (44.0%) |
Low-density lipoprotein (ng/ml) | |
Mean (SD) | 127 (37.2) |
Median [Min, Max] | 124 [33.0, 394] |
Anti-hypertensive | |
No | 3538 (96.7%) |
Yes | 122 (3.3%) |
Overall (N=2656) |
|
---|---|
Age (y) | |
Mean (SD) | 34.2 (9.57) |
Median [Min, Max] | 33.0 [9.00, 65.0] |
Sex | |
Male | 1253 (47.2%) |
Female | 1403 (52.8%) |
Systolic blood pressure (mm Hg) | |
Mean (SD) | 120 (14.5) |
Median [Min, Max] | 118 [78.0, 209] |
Total cholesterol (ng/ml) | |
Mean (SD) | 194 (37.0) |
Median [Min, Max] | 190 [103, 394] |
High-density lipoprotein (ng/ml) | |
Mean (SD) | 52.6 (15.9) |
Median [Min, Max] | 51.0 [14.0, 126] |
Smoking Status | |
Never | 1589 (59.8%) |
Current | 1067 (40.2%) |
Polygenic score category | |
Low | 531 (20.0%) |
Intermediate | 1593 (60.0%) |
High | 532 (20.0%) |
Low-density lipoprotein (ng/ml) | |
Mean (SD) | 124 (35.2) |
Median [Min, Max] | 120 [33.0, 326] |
Anti-hypertensive | |
No | 2595 (97.7%) |
Yes | 61 (2.3%) |
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] flextable_0.8.6 magrittr_2.0.3 table1_1.4.3
loaded via a namespace (and not attached):
[1] xfun_0.33 bslib_0.4.0 fontquiver_0.2.1
[4] vctrs_0.5.2 htmltools_0.5.3 yaml_2.3.5
[7] utf8_1.2.2 rlang_1.0.6 jquerylib_0.1.4
[10] later_1.3.0 pillar_1.8.1 glue_1.6.2
[13] httpcode_0.3.0 gfonts_0.2.0 gdtools_0.3.1
[16] uuid_1.1-0 lifecycle_1.0.3 stringr_1.4.1
[19] workflowr_1.7.0 zip_2.2.1 ragg_1.2.3
[22] evaluate_0.17 memoise_2.0.1 knitr_1.40
[25] fastmap_1.1.0 httpuv_1.6.6 fontLiberation_0.1.0
[28] curl_4.3.3 fansi_1.0.3 Rcpp_1.0.9
[31] xtable_1.8-4 openssl_2.0.3 promises_1.2.0.1
[34] cachem_1.0.6 jsonlite_1.8.2 systemfonts_1.0.4
[37] mime_0.12 fs_1.5.2 fontBitstreamVera_0.1.1
[40] textshaping_0.3.6 askpass_1.1 digest_0.6.29
[43] stringi_1.7.8 shiny_1.7.2 grid_4.2.1
[46] rprojroot_2.0.3 cli_3.4.1 tools_4.2.1
[49] sass_0.4.2 tibble_3.1.8 Formula_1.2-4
[52] crul_1.3 crayon_1.5.2 whisker_0.4
[55] pkgconfig_2.0.3 ellipsis_0.3.2 xml2_1.3.3
[58] data.table_1.14.2 officer_0.6.1 rmarkdown_2.17
[61] rstudioapi_0.14 R6_2.5.1 git2r_0.30.1
[64] compiler_4.2.1