Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
linabe committed Dec 20, 2023
0 parents commit e390b43
Show file tree
Hide file tree
Showing 54 changed files with 13,129 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/.quarto/
.DS_Store

# History files
.Rhistory
.Rapp.history

# Session Data files
.RData
.Ruserdata

# RStudio files
.Rproj.user/

# knitr and R markdown default cache directories
*_cache
cache/

# Temporary files created by R markdown
*.utf8.md
*.knit.md

TODO
OLD
checks/
data/
extra/
deskstatshfdb4/
Empty file added .nojekyll
Empty file.
5 changes: 5 additions & 0 deletions 404.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "404"
---

Page not found, sorry! Try the search or navigate back to the base website.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code for creating website with info on construction of SHFDB4

## Language

English.

## Website

https://kiheartfailure.github.io/shfdb4
14 changes: 14 additions & 0 deletions _freeze/definitions/index/execute-results/html.json

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions _freeze/docs/variabledescription/index/execute-results/html.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"hash": "0522c89ef04fa595b48c7cacbf40424a",
"result": {
"markdown": "---\nlayout: page\ntitle: Variable description\nexecute:\n freeze: true # never re-render during project render\nengine: knitr \nresources:\n - \"meta_variables.xlsx\"\nvardesc:\n xlsx: \"meta_variables.xlsx\"\n---\n\n::: {.cell}\n<style type=\"text/css\">\n.embed-container {\n position: relative;\n padding-bottom: 129%;\n height: 0;\n overflow: hidden;\n max-width: 100%;\n}\n.embed-container iframe,\n.embed-container object,\n.embed-container embed {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n</style>\n:::\n\n```{=html}\n<p class=\"text-center\">\n <a class=\"btn btn-primary btn-lg cv-download\" href=\"\" target=\"_blank\">\n <i class=\"fa-solid fa-file-arrow-down\"></i>&ensp;Download current CV\n </a>\n</p>\n<div class=\"embed-container\">\n <iframe src=\"#toolbar=0\" style=\"border: 0.5px;width: 100%;\"></iframe>\n</div>\n```\n\n```{=html}\n<div style=\"margin: 30px; text-align: center;\">\n<a class=\"btn btn-primary\" href=\"https://www.marvinschmitt.com/blog/website-tutorial-quarto/\" role=\"button\" target=\"_blank\" style=\"padding: 15px 30px;\">View the tutorial for this template (+ download link)</a>\n</div>\n```\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
18 changes: 18 additions & 0 deletions _freeze/overview/index/execute-results/html.json

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions _freeze/population/index/execute-results/html.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"hash": "db1d53d81fc38715f98bb764e904cc30",
"result": {
"markdown": "---\ntitle: Population\n---\n\n\n\n::: {.cell}\n\n:::\n\n\n## Patients registered in SwedeHF\n\nAll patients recorded in SwedeHF are included. \n\n----\n\n## Patients with HF from the National Patient Register\n\nPatients with an ICD-10 code for HF in main position in the National Patient Register (ICD-10: I110, I130, I132, I255, I420, I423, 1425-9, I43, I50, J81, K761) starting from 2000-01-01 with no previous ICD-9/10 code for HF (I110 I130 I132 I255 I420 I423 1425 I426 I427 I428 I429 I43 I50 J81 K761 ICD-9: 414W 425E 425F 425G 425H 425W 425X 428) since 1987.\n\n----\n\n## HF-free controls\n\nFor each post in SwedeHF or the first date in the National Patient Register a set of controls was chosen by Statistics Sweden in a ratio of 2:1. Since a person can have more than one registered post in SwedeHF a patient can have more than 2 controls in total, up to 2 for each posts.\n\nEligible controls were persons without re-used Swedish personal identity numbers (PINs) and free of HF, defined either in the National Patient registry (ICD-10: I110, I130, I132, I255, I420, I423, 1425-9, I43, I50, J81, K761, R570, ICD-9: 414W, 425E-H, 425W, 425X, 428) or SwedeHF, at the end of the year of the index date for the case and matched by gender, year of birth and county of residence at index. For posts with age ≥ 90 years, controls were only matched by gender and year of birth due to the smaller available number of controls.\n\nThe selection of controls was performed without replacement.\n\nA control was allowed to become a case after the year of the index date for the case.\n\nA full set of controls (n = 2) was not found for all cases:\n\n\n::: {.cell}\n::: {.cell-output-display}\n`````{=html}\n<table>\n <thead>\n <tr>\n <th style=\"text-align:left;\"> Population </th>\n <th style=\"text-align:right;\"> No controls </th>\n <th style=\"text-align:right;\"> Posts </th>\n <th style=\"text-align:right;\"> Unique patients </th>\n </tr>\n </thead>\n<tbody>\n <tr>\n <td style=\"text-align:left;\"> Case SwedeHF </td>\n <td style=\"text-align:right;\"> 0 </td>\n <td style=\"text-align:right;\"> 3849 </td>\n <td style=\"text-align:right;\"> 2156 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Case SwedeHF </td>\n <td style=\"text-align:right;\"> 1 </td>\n <td style=\"text-align:right;\"> 17210 </td>\n <td style=\"text-align:right;\"> 7319 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Case SwedeHF </td>\n <td style=\"text-align:right;\"> 2 </td>\n <td style=\"text-align:right;\"> 185575 </td>\n <td style=\"text-align:right;\"> 104900 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Case NPR </td>\n <td style=\"text-align:right;\"> 0 </td>\n <td style=\"text-align:right;\"> 19057 </td>\n <td style=\"text-align:right;\"> 19057 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Case NPR </td>\n <td style=\"text-align:right;\"> 1 </td>\n <td style=\"text-align:right;\"> 26433 </td>\n <td style=\"text-align:right;\"> 26433 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Case NPR </td>\n <td style=\"text-align:right;\"> 2 </td>\n <td style=\"text-align:right;\"> 377386 </td>\n <td style=\"text-align:right;\"> 377386 </td>\n </tr>\n</tbody>\n</table>\n\n`````\n:::\n:::\n\n\n----\n\n## Inclusion/exclusion criteria\n\n\n::: {.cell}\n::: {.cell-output-display}\n`````{=html}\n<table>\n <thead>\n <tr>\n <th style=\"text-align:left;\"> Criteria </th>\n <th style=\"text-align:right;\"> Case SwedeHF </th>\n <th style=\"text-align:right;\"> Case NPR </th>\n <th style=\"text-align:right;\"> Control SwedeHF </th>\n <th style=\"text-align:right;\"> Control NPR </th>\n </tr>\n </thead>\n<tbody>\n <tr>\n <td style=\"text-align:left;\"> No of posts recieved </td>\n <td style=\"text-align:right;\"> 216652 </td>\n <td style=\"text-align:right;\"> 471853 </td>\n <td style=\"text-align:right;\"> 405913 </td>\n <td style=\"text-align:right;\"> 802436 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Exclude posts with duplicated index dates </td>\n <td style=\"text-align:right;\"> 216029 </td>\n <td style=\"text-align:right;\"> </td>\n <td style=\"text-align:right;\"> </td>\n <td style=\"text-align:right;\"> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Exclude posts with with index date &lt; 2000-01-01 </td>\n <td style=\"text-align:right;\"> 216026 </td>\n <td style=\"text-align:right;\"> 437182 </td>\n <td style=\"text-align:right;\"> 405907 </td>\n <td style=\"text-align:right;\"> 799666 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Exclude posts with with index date &gt; 2021-12-31 </td>\n <td style=\"text-align:right;\"> 207290 </td>\n <td style=\"text-align:right;\"> 426074 </td>\n <td style=\"text-align:right;\"> 388928 </td>\n <td style=\"text-align:right;\"> 785550 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Exclude posts &lt; 18 years </td>\n <td style=\"text-align:right;\"> 207277 </td>\n <td style=\"text-align:right;\"> 424752 </td>\n <td style=\"text-align:right;\"> 388903 </td>\n <td style=\"text-align:right;\"> 782942 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Exclude posts that are not present in SCB register </td>\n <td style=\"text-align:right;\"> 206875 </td>\n <td style=\"text-align:right;\"> 423401 </td>\n <td style=\"text-align:right;\"> 388903 </td>\n <td style=\"text-align:right;\"> 782942 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Exclude posts with reused PINs </td>\n <td style=\"text-align:right;\"> 206640 </td>\n <td style=\"text-align:right;\"> 423026 </td>\n <td style=\"text-align:right;\"> 388903 </td>\n <td style=\"text-align:right;\"> 782942 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Exclude posts censored end fu &lt; index </td>\n <td style=\"text-align:right;\"> 206634 </td>\n <td style=\"text-align:right;\"> 422876 </td>\n <td style=\"text-align:right;\"> 388838 </td>\n <td style=\"text-align:right;\"> 782222 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Exclude controls without cases </td>\n <td style=\"text-align:right;\"> 206634 </td>\n <td style=\"text-align:right;\"> 422876 </td>\n <td style=\"text-align:right;\"> 388838 </td>\n <td style=\"text-align:right;\"> 782222 </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Exclude posts with end of follow-up &lt;= index date (died in hospital) </td>\n <td style=\"text-align:right;\"> 203425 </td>\n <td style=\"text-align:right;\"> </td>\n <td style=\"text-align:right;\"> </td>\n <td style=\"text-align:right;\"> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Unique patients </td>\n <td style=\"text-align:right;\"> 112423 </td>\n <td style=\"text-align:right;\"> </td>\n <td style=\"text-align:right;\"> </td>\n <td style=\"text-align:right;\"> </td>\n </tr>\n</tbody>\n</table>\n\n`````\n:::\n:::",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
7 changes: 7 additions & 0 deletions _freeze/site_libs/clipboard/clipboard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions _freeze/site_libs/kePrint-0.0.1/kePrint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$(document).ready(function(){
if (typeof $('[data-toggle="tooltip"]').tooltip === 'function') {
$('[data-toggle="tooltip"]').tooltip();
}
if ($('[data-toggle="popover"]').popover === 'function') {
$('[data-toggle="popover"]').popover();
}
});
Loading

0 comments on commit e390b43

Please sign in to comment.