From bdde6003f2d99c329fbf4dbad0b44c34a4b054a0 Mon Sep 17 00:00:00 2001 From: Duncan Gillespie Date: Wed, 25 Nov 2020 11:50:08 +0000 Subject: [PATCH] fix issue with 54 instead of 52 tob disease names --- DESCRIPTION | 6 ++++-- NAMESPACE | 1 + R/AlcBinge.R | 2 +- R/tob_disease_names.R | 12 +++++------- R/tobacco_relative_risks.R | 12 +++++------- README.Rmd | 4 ++-- README.md | 2 +- data-raw/disease_names.R | 5 ----- data-raw/tobacco_relative_risks.R | 14 ++++++++++++-- data/tob_disease_names.rda | Bin 710 -> 684 bytes data/tobacco_relative_risks.rda | Bin 1388 -> 1401 bytes disease-risks.bib => inst/REFERENCES.bib | 0 man/AlcBinge.Rd | 2 +- man/tob_disease_names.Rd | 9 +++++---- man/tobacco_relative_risks.Rd | 9 +++++---- public/404.html | 2 +- public/LICENSE.html | 2 +- .../articles/alc_partially_attrib_acute.html | 2 +- public/articles/alc_wholly_attrib_acute.html | 2 +- .../articles/alc_wholly_attrib_chronic.html | 2 +- public/articles/index.html | 2 +- public/articles/smoking-disease-risks.html | 2 +- public/authors.html | 2 +- public/index.html | 4 ++-- public/pkgdown.yml | 2 +- public/reference/AlcBinge.html | 6 +++--- public/reference/AlcBinge_stapm.html | 2 +- public/reference/AlcLags.html | 2 +- public/reference/ExpandCodes.html | 2 +- public/reference/PArisk.html | 2 +- public/reference/RRFunc.html | 2 +- public/reference/RRTobDR.html | 2 +- public/reference/RRalc.html | 2 +- public/reference/RRtob.html | 2 +- public/reference/TobAlcInt.html | 2 +- public/reference/TobLags.html | 2 +- public/reference/WArisk_acute.html | 2 +- public/reference/alc_disease_names.html | 2 +- public/reference/binge_params.html | 2 +- public/reference/binge_params_stapm.html | 2 +- public/reference/disease_groups.html | 2 +- public/reference/index.html | 2 +- public/reference/subgroupRisk.html | 2 +- public/reference/tob_alc_risk_int.html | 2 +- public/reference/tob_disease_names.html | 15 +++++++++------ public/reference/tobacco_lag_times.html | 2 +- public/reference/tobacco_relative_risks.html | 15 +++++++++------ 47 files changed, 93 insertions(+), 81 deletions(-) rename disease-risks.bib => inst/REFERENCES.bib (100%) diff --git a/DESCRIPTION b/DESCRIPTION index 29a1dd0..5da4ccd 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: tobalcepi Type: Package Title: Risk Functions and Attributable Fractions for Tobacco and Alcohol -Version: 1.2.0 +Version: 1.2.1 Authors@R: c( person(given = "Duncan", @@ -41,7 +41,9 @@ Imports: readxl, testthat, dplyr, - data.table + data.table, + Rdpack +RdMacros: Rdpack VignetteBuilder: knitr RoxygenNote: 7.1.0 Depends: diff --git a/NAMESPACE b/NAMESPACE index 7229fef..a604a9b 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -14,6 +14,7 @@ export(TobLags) export(WArisk_acute) export(subgroupRisk) import(data.table) +importFrom(Rdpack,reprompt) importFrom(data.table,":=") importFrom(data.table,setDT) importFrom(data.table,setnames) diff --git a/R/AlcBinge.R b/R/AlcBinge.R index bf00975..c30d038 100644 --- a/R/AlcBinge.R +++ b/R/AlcBinge.R @@ -3,7 +3,7 @@ #' #' Designed to work with cross-sectional survey data with a wide range of individual-level covariates. #' Uses survey data and previously estimated coefficients to describe -#' the patterns of single occassion drinking. +#' the patterns of single occasion drinking. #' #' This is based on a study by Hill-McManus 2014, #' who analysed drinking occasions using data from detailed diaries in the National Diet and Nutrition Survey 2000/2001. diff --git a/R/tob_disease_names.R b/R/tob_disease_names.R index 3b92f3d..71257be 100644 --- a/R/tob_disease_names.R +++ b/R/tob_disease_names.R @@ -1,16 +1,14 @@ #' Names of tobacco-related diseases #' -#' +#' @importFrom Rdpack reprompt #' #' @docType data #' -#' @format A data table -#' -#' @source -#' -#' -#' +#' @format A character vector containing the names of the 52 disease categories +#' of smoking related diseases \insertCite{webster2018risk;textual}{tobalcepi}. #' +#' @references +#' \insertRef{webster2018risk}{tobalcepi} #' "tob_disease_names" diff --git a/R/tobacco_relative_risks.R b/R/tobacco_relative_risks.R index e681c8d..9de451c 100644 --- a/R/tobacco_relative_risks.R +++ b/R/tobacco_relative_risks.R @@ -1,16 +1,14 @@ #' Tobacco relative risks #' -#' +#' @importFrom Rdpack reprompt #' #' @docType data #' -#' @format A data table -#' -#' @source -#' -#' -#' +#' @format A data table containing the relative risks of 52 disease categories +#' for current vs. never smokers \insertCite{webster2018risk;textual}{tobalcepi}. #' +#' @references +#' \insertRef{webster2018risk}{tobalcepi} #' "tobacco_relative_risks" diff --git a/README.Rmd b/README.Rmd index 34f68e4..bf2baeb 100644 --- a/README.Rmd +++ b/README.Rmd @@ -1,6 +1,6 @@ --- output: github_document -bibliography: disease-risks.bib +bibliography: inst/REFERENCES.bib link-citations: yes citation_package: natbib biblio-style: vancouver @@ -29,7 +29,7 @@ The motivation for `tobalcepi` was to organise how we store, process and use the `tobalcepi` was created as part of a programme of work on the health economics of tobacco and alcohol at the School of Health and Related Research (ScHARR), The University of Sheffield. This programme is based around the development of the Sheffield Tobacco and Alcohol Policy Modelling (STAPM), which aims to use comparable methodologies to evaluate the impacts of tobacco and alcohol policies, and investigate the consequences of clustering and interactions between tobacco and alcohol consumption behaviours. ## Relative risk data -The disease lists and risk functions in this package all have published sources, which we have referenced. We store the master files for our tobacco and alcohol disease lists and risk functions sources in the University of Sheffield folder `X:/ScHARR/PR_Disease_Risk_TA/Disease_Lists`. In order to obtain mathematical descriptions of the risk functions for use in modelling, we needed to contact some authors to ask for additional information. +The disease lists and risk functions in this package all have published sources, which we have referenced. We store the master files for our tobacco and alcohol disease lists and risk functions sources in the University of Sheffield folder `X:/ScHARR/PR_Disease_Risk_TA/Code/tables`. In order to obtain mathematical descriptions of the risk functions for use in modelling, we needed to contact some authors to ask for additional information. ### Alcohol The high-level function for alcohol is `tobalcepi::RRalc()`, which calculates individual risks of diseases as follows: diff --git a/README.md b/README.md index 376b6e7..be8992d 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ The disease lists and risk functions in this package all have published sources, which we have referenced. We store the master files for our tobacco and alcohol disease lists and risk functions sources in the University of Sheffield folder -`X:/ScHARR/PR_Disease_Risk_TA/Disease_Lists`. In order to obtain +`X:/ScHARR/PR_Disease_Risk_TA/Code/tables`. In order to obtain mathematical descriptions of the risk functions for use in modelling, we needed to contact some authors to ask for additional information. diff --git a/data-raw/disease_names.R b/data-raw/disease_names.R index 7340281..8be0db6 100644 --- a/data-raw/disease_names.R +++ b/data-raw/disease_names.R @@ -9,12 +9,7 @@ library(readxl) # Set the file path to point to the University of Sheffield X drive root_dir <- "/Volumes/" -# Load the master spreadsheet containing disease risks -TobList <- readxl::read_excel(paste0(root_dir, "ScHARR/PR_Disease_Risk_TA/Code/tables/16102018tobaccoandalcoholDiseaseListandRiskFunctions.xlsx"), sheet = "Tobacco") -tob_disease_names <- as.character(c(unique(TobList$condition))) - -usethis::use_data(tob_disease_names, overwrite = T) diff --git a/data-raw/tobacco_relative_risks.R b/data-raw/tobacco_relative_risks.R index 99135e6..1b42154 100644 --- a/data-raw/tobacco_relative_risks.R +++ b/data-raw/tobacco_relative_risks.R @@ -1,6 +1,9 @@ # This code reads and processes the relative risks for tobacco -# They are stored in X:/ScHARR/PR_Disease_Risk_TA/Code/tables +# for current vs. never smokers + +# They are stored in a master spreadsheet in X:/ScHARR/PR_Disease_Risk_TA/Code/tables +# `16102018 tobacco and alcohol Disease List and Risk Functions.xlsx` # This code reads that file and cleans it to prepare the data to be used in the model @@ -10,7 +13,9 @@ library(readxl) root_dir <- "/Volumes/" # Load the master spreadsheet containing disease risks -tobacco_relative_risks <- readxl::read_excel(paste0(root_dir, "ScHARR/PR_Disease_Risk_TA/Code/tables/16102018tobaccoandalcoholDiseaseListandRiskFunctions.xlsx"), sheet = "Tobacco") +tobacco_relative_risks <- readxl::read_excel(paste0(root_dir, + "ScHARR/PR_Disease_Risk_TA/Code/tables/16102018tobaccoandalcoholDiseaseListandRiskFunctions.xlsx"), + sheet = "Tobacco") # Set it as a data table data.table::setDT(tobacco_relative_risks) @@ -25,3 +30,8 @@ data.table::setnames(tobacco_relative_risks, "Current", "relative_risk") # Save the result to the package data folder usethis::use_data(tobacco_relative_risks, overwrite = T) +# Save a separate list of the disease names +tob_disease_names <- as.character(c(unique(tobacco_relative_risks$condition))) + +usethis::use_data(tob_disease_names, overwrite = T) + diff --git a/data/tob_disease_names.rda b/data/tob_disease_names.rda index 4d3f45cda79b108cba63fc0c91118e256450094c..7b005526c5794c1b2e478300daf92f9edf180809 100644 GIT binary patch literal 684 zcmV;d0#p4$T4*^jL0KkKS*>3EuK)o3|A7Dh|LZ~k6aYSN-$1|b-|zqdKmuHt8UTVw z(V%G2>IRws7?{vN4FCWQOb`=9$Ym$BG!SS227?d=Pg74&=9w7`m?5JHf;7>i5H!h= zfB=IeO#qr=YI+k*rjW#87>0lclo)|ewD<)4p#aHKfD&FuM)y3bA7k?_-)i0UiA-K} zff`_i<{6u95pXKB`m)B_QBs3ZNI{f>3J^#{GN1w?JV+iO0RS;_ZKtvY%b<7Tz~mTN zjM8Vg&_N2BQ=?Fua$@Ix1(1cFg>w(+sVbsr0qZLg_H;MYh)dBk_0)mWBRPn{>SFjJ zb*fI3_LpBP519Wgo=&0zh6cis`*HlU>N*UDrlBVMT zPp*`<`#}XAwfO(GE5#3Sxxx;k^$(uJMs^TUeSpL6wS&Py@pfg{KnING?8pM8+t)Ha zFsG>o+~WWNWO9|yezr-lya&*+&cTq!mRIuEgFJ8J)n2WJ+eVnelmaB;A-5M`SryLW z6wq?zxjK#oBUBgyz^yXJ8jb6l;6$2u85*N_T+{G32wfE2R8i96LDR?8Zjg*h*pGddrU!9Sb-uSLVs&=Ca~PX zQG&S6^V*i7j%N_dMcZ@1Sj;9eP42o)_S%d{M z*q!2YUnq-mx(x}V&dF-1XKRFtE;a~((lByy={F1Pcz*!6zz9zOO=4~enKY&wxdenW zv_A1|hdPohovb5&!`Ue}Mo0|LZ~k5P&{!-$1|b-|zqdKmvT6&2`uV zQ%N496HQOlF%M80m^9N(8WDtH7yufWKuL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B|D0Kr>5&JJw=^&w6#@Qe#R8`Zn~{3waRB`G(DA;XlPvb7FkZ^N!U{shK9Gb z+{UG%l-5%wxQW|{n3!Pr-G4OLX=q-e z^90xas;PSCbzs)`+BlllZES9rOBbA*k466++gNrrVeQ}Ma$o?Yx(>Gzc2 zXk>4}A0$M{gMUjSn2gOzb6p0rkmGob?F#VP+)jImwaTs*x8-wIUg;dh zW=$<8B8|Vyp4-W5V3h6WxbPgROzLx#-yRXMz_Ur!Z?1lYnJJxR>y9Ifa_d^stgdUC z)^IO$F{;T$E^)cc7cgr(h0XU1fs0Xdz;zs)=IZq}x{S-4%q6N-Qh%cWzGqoWHn4|P z%zNf%8>ZkhuilbrQhba|x8vquh@0LcoY2Y8X3n{+=`(`i7RLaZTUvC2SGrNm1a<6h1yi-#$?3ET-%vsS~*t%HpQjQL8 z*7Ks{a4%r8#mrgUtbbTGxUf|nBSSG}CF~QyX<37TnX!hP>s6}D*614=TN~oaQ$qFU z1L%L3*FP1Wr;mNRqGvP|+huaDc*|KeINKNQy(LZ;LBP(*ovCvvlIHsTE^~0jFXyY7 zrDkzvCCiDWY0a*!_N_(qx|X5fH(40ENwH)uVj5l#l*OTbReuV`Ug_GaOHqTUtd}xm z@Y}{t17V%Ht$OC_moRJ8(!qlUrX`oR6zMEkp;Df8oER9zEw3xYrglbUGY25N=Z!&wbggfz7F~+ Zsc0-xq?7ZMlZ|iwF64@Ep&>;ccX)9cmeT+L diff --git a/disease-risks.bib b/inst/REFERENCES.bib similarity index 100% rename from disease-risks.bib rename to inst/REFERENCES.bib diff --git a/man/AlcBinge.Rd b/man/AlcBinge.Rd index bbe51b3..874cf11 100644 --- a/man/AlcBinge.Rd +++ b/man/AlcBinge.Rd @@ -18,7 +18,7 @@ Returns data plus the estimated variables. \description{ Designed to work with cross-sectional survey data with a wide range of individual-level covariates. Uses survey data and previously estimated coefficients to describe -the patterns of single occassion drinking. +the patterns of single occasion drinking. } \details{ This is based on a study by Hill-McManus 2014, diff --git a/man/tob_disease_names.Rd b/man/tob_disease_names.Rd index bececf0..803ad17 100644 --- a/man/tob_disease_names.Rd +++ b/man/tob_disease_names.Rd @@ -5,10 +5,8 @@ \alias{tob_disease_names} \title{Names of tobacco-related diseases} \format{ -A data table -} -\source{ - +A character vector containing the names of the 52 disease categories +of smoking related diseases \insertCite{webster2018risk;textual}{tobalcepi}. } \usage{ tob_disease_names @@ -16,4 +14,7 @@ tob_disease_names \description{ Names of tobacco-related diseases } +\references{ +\insertRef{webster2018risk}{tobalcepi} +} \keyword{datasets} diff --git a/man/tobacco_relative_risks.Rd b/man/tobacco_relative_risks.Rd index f55b47b..02bb75e 100644 --- a/man/tobacco_relative_risks.Rd +++ b/man/tobacco_relative_risks.Rd @@ -5,10 +5,8 @@ \alias{tobacco_relative_risks} \title{Tobacco relative risks} \format{ -A data table -} -\source{ - +A data table containing the relative risks of 52 disease categories +for current vs. never smokers \insertCite{webster2018risk;textual}{tobalcepi}. } \usage{ tobacco_relative_risks @@ -16,4 +14,7 @@ tobacco_relative_risks \description{ Tobacco relative risks } +\references{ +\insertRef{webster2018risk}{tobalcepi} +} \keyword{datasets} diff --git a/public/404.html b/public/404.html index ee96e0a..daf4645 100644 --- a/public/404.html +++ b/public/404.html @@ -71,7 +71,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/LICENSE.html b/public/LICENSE.html index b51bff3..f35709e 100644 --- a/public/LICENSE.html +++ b/public/LICENSE.html @@ -71,7 +71,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/articles/alc_partially_attrib_acute.html b/public/articles/alc_partially_attrib_acute.html index 4e9e747..a7dae1c 100644 --- a/public/articles/alc_partially_attrib_acute.html +++ b/public/articles/alc_partially_attrib_acute.html @@ -31,7 +31,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/articles/alc_wholly_attrib_acute.html b/public/articles/alc_wholly_attrib_acute.html index 0193147..a4177b3 100644 --- a/public/articles/alc_wholly_attrib_acute.html +++ b/public/articles/alc_wholly_attrib_acute.html @@ -31,7 +31,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/articles/alc_wholly_attrib_chronic.html b/public/articles/alc_wholly_attrib_chronic.html index 0f20551..62deb58 100644 --- a/public/articles/alc_wholly_attrib_chronic.html +++ b/public/articles/alc_wholly_attrib_chronic.html @@ -31,7 +31,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/articles/index.html b/public/articles/index.html index 1072844..d0a5c88 100644 --- a/public/articles/index.html +++ b/public/articles/index.html @@ -71,7 +71,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/articles/smoking-disease-risks.html b/public/articles/smoking-disease-risks.html index ca882b4..e285c09 100644 --- a/public/articles/smoking-disease-risks.html +++ b/public/articles/smoking-disease-risks.html @@ -31,7 +31,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/authors.html b/public/authors.html index 6e653fa..67f7011 100644 --- a/public/authors.html +++ b/public/authors.html @@ -71,7 +71,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/index.html b/public/index.html index 3dbf620..38a8454 100644 --- a/public/index.html +++ b/public/index.html @@ -31,7 +31,7 @@ tobalcepi - 1.2.0 + 1.2.1 @@ -95,7 +95,7 @@

Relative risk data

-

The disease lists and risk functions in this package all have published sources, which we have referenced. We store the master files for our tobacco and alcohol disease lists and risk functions sources in the University of Sheffield folder X:/ScHARR/PR_Disease_Risk_TA/Disease_Lists. In order to obtain mathematical descriptions of the risk functions for use in modelling, we needed to contact some authors to ask for additional information.

+

The disease lists and risk functions in this package all have published sources, which we have referenced. We store the master files for our tobacco and alcohol disease lists and risk functions sources in the University of Sheffield folder X:/ScHARR/PR_Disease_Risk_TA/Code/tables. In order to obtain mathematical descriptions of the risk functions for use in modelling, we needed to contact some authors to ask for additional information.

Alcohol

diff --git a/public/pkgdown.yml b/public/pkgdown.yml index dee26a5..7fbac74 100644 --- a/public/pkgdown.yml +++ b/public/pkgdown.yml @@ -6,7 +6,7 @@ articles: alc_wholly_attrib_acute: alc_wholly_attrib_acute.html alc_wholly_attrib_chronic: alc_wholly_attrib_chronic.html smoking-disease-risks: smoking-disease-risks.html -last_built: 2020-11-25T11:12Z +last_built: 2020-11-25T11:48Z urls: reference: https://stapm.gitlab.io/tobalcepi/reference article: https://stapm.gitlab.io/tobalcepi/articles diff --git a/public/reference/AlcBinge.html b/public/reference/AlcBinge.html index 3acef30..19fb4ea 100644 --- a/public/reference/AlcBinge.html +++ b/public/reference/AlcBinge.html @@ -42,7 +42,7 @@ +the patterns of single occasion drinking." /> @@ -74,7 +74,7 @@ tobalcepi - 1.2.0 + 1.2.1
@@ -134,7 +134,7 @@

Calculate variables to inform alcohol binge model

Designed to work with cross-sectional survey data with a wide range of individual-level covariates. Uses survey data and previously estimated coefficients to describe -the patterns of single occassion drinking.

+the patterns of single occasion drinking.

AlcBinge(data, params = tobalcepi::binge_params)
diff --git a/public/reference/AlcBinge_stapm.html b/public/reference/AlcBinge_stapm.html index 3a249b0..81c0376 100644 --- a/public/reference/AlcBinge_stapm.html +++ b/public/reference/AlcBinge_stapm.html @@ -75,7 +75,7 @@ tobalcepi - 1.2.0 + 1.2.1
diff --git a/public/reference/AlcLags.html b/public/reference/AlcLags.html index 18801e0..0808f2b 100644 --- a/public/reference/AlcLags.html +++ b/public/reference/AlcLags.html @@ -74,7 +74,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/ExpandCodes.html b/public/reference/ExpandCodes.html index 4aae3b2..aee3cee 100644 --- a/public/reference/ExpandCodes.html +++ b/public/reference/ExpandCodes.html @@ -72,7 +72,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/PArisk.html b/public/reference/PArisk.html index 55a89a5..88e2662 100644 --- a/public/reference/PArisk.html +++ b/public/reference/PArisk.html @@ -73,7 +73,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/RRFunc.html b/public/reference/RRFunc.html index 584f3dd..fdb40b6 100644 --- a/public/reference/RRFunc.html +++ b/public/reference/RRFunc.html @@ -74,7 +74,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/RRTobDR.html b/public/reference/RRTobDR.html index 3b02383..6d89cd6 100644 --- a/public/reference/RRTobDR.html +++ b/public/reference/RRTobDR.html @@ -72,7 +72,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/RRalc.html b/public/reference/RRalc.html index 9f5200f..52c34d8 100644 --- a/public/reference/RRalc.html +++ b/public/reference/RRalc.html @@ -72,7 +72,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/RRtob.html b/public/reference/RRtob.html index 1c09ea5..17534e9 100644 --- a/public/reference/RRtob.html +++ b/public/reference/RRtob.html @@ -72,7 +72,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/TobAlcInt.html b/public/reference/TobAlcInt.html index d9f2b6e..83a857a 100644 --- a/public/reference/TobAlcInt.html +++ b/public/reference/TobAlcInt.html @@ -73,7 +73,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/TobLags.html b/public/reference/TobLags.html index a1fedb3..43b9770 100644 --- a/public/reference/TobLags.html +++ b/public/reference/TobLags.html @@ -74,7 +74,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/WArisk_acute.html b/public/reference/WArisk_acute.html index 988784e..23645f7 100644 --- a/public/reference/WArisk_acute.html +++ b/public/reference/WArisk_acute.html @@ -74,7 +74,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/alc_disease_names.html b/public/reference/alc_disease_names.html index 597bf60..351f7c1 100644 --- a/public/reference/alc_disease_names.html +++ b/public/reference/alc_disease_names.html @@ -72,7 +72,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/binge_params.html b/public/reference/binge_params.html index 2700811..93cc0b4 100644 --- a/public/reference/binge_params.html +++ b/public/reference/binge_params.html @@ -72,7 +72,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/binge_params_stapm.html b/public/reference/binge_params_stapm.html index 85a6fc5..578022b 100644 --- a/public/reference/binge_params_stapm.html +++ b/public/reference/binge_params_stapm.html @@ -77,7 +77,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/disease_groups.html b/public/reference/disease_groups.html index eedfb0a..551425e 100644 --- a/public/reference/disease_groups.html +++ b/public/reference/disease_groups.html @@ -72,7 +72,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/index.html b/public/reference/index.html index 1b8a961..f0463de 100644 --- a/public/reference/index.html +++ b/public/reference/index.html @@ -71,7 +71,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/subgroupRisk.html b/public/reference/subgroupRisk.html index c64132d..7cec8e7 100644 --- a/public/reference/subgroupRisk.html +++ b/public/reference/subgroupRisk.html @@ -73,7 +73,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/tob_alc_risk_int.html b/public/reference/tob_alc_risk_int.html index a4dbbc5..f8f333a 100644 --- a/public/reference/tob_alc_risk_int.html +++ b/public/reference/tob_alc_risk_int.html @@ -72,7 +72,7 @@ tobalcepi - 1.2.0 + 1.2.1 diff --git a/public/reference/tob_disease_names.html b/public/reference/tob_disease_names.html index edda241..5c0ecd3 100644 --- a/public/reference/tob_disease_names.html +++ b/public/reference/tob_disease_names.html @@ -72,7 +72,7 @@ tobalcepi - 1.2.0 + 1.2.1 @@ -138,12 +138,15 @@

Names of tobacco-related diseases

Format

-

A data table

-

Source

- - - +

A character vector containing the names of the 52 disease categories +of smoking related diseases Webster et al. (2018) +.

+

References

+

Webster L, Angus C, Brennan A, Gillespie D (2018). +“Smoking and the risks of adult diseases.” +doi: 10.15131/shef.data.7411451.v1 +, https://figshare.shef.ac.uk/articles/Smoking_and_the_risks_of_adult_diseases/7411451/1.

diff --git a/public/reference/tobacco_relative_risks.html b/public/reference/tobacco_relative_risks.html index d8bf5aa..07b6d96 100644 --- a/public/reference/tobacco_relative_risks.html +++ b/public/reference/tobacco_relative_risks.html @@ -72,7 +72,7 @@ tobalcepi - 1.2.0 + 1.2.1 @@ -138,12 +138,15 @@

Tobacco relative risks

Format

-

A data table

-

Source

- - - +

A data table containing the relative risks of 52 disease categories +for current vs. never smokers Webster et al. (2018) +.

+

References

+

Webster L, Angus C, Brennan A, Gillespie D (2018). +“Smoking and the risks of adult diseases.” +doi: 10.15131/shef.data.7411451.v1 +, https://figshare.shef.ac.uk/articles/Smoking_and_the_risks_of_adult_diseases/7411451/1.