Description Usage Format Details Author(s) Source Examples
A simulated sample dataset for exploring the use of the QDR2013, QDR2018A, QDR2018B and QDR2018C type 2 diabetes risk prediction functions of this package.
1 | data("dat_qdr")
|
A data frame with 50 observations on the following 21 variables:
sexA factor vector of genders. Possible values: "Female" or "Male".
ageAn integer vector of ages (years).
bmiA double vector ofbody-mass indexes (kg/m^2).
htA double vector of heights (m).
wtA double vector of weights (kg).
fpgA double vector of fasting plasma glucose test results (mmol/L).
hba1cA double vector of glycated haemoglobin test results (mmol/mol).
ethnA factor vector of ethnicities. Possible values:
"WhiteNA" (White or not stated)
"Indian" (Indian)
"Pakistani" (Pakistani)
"Bangladeshi" (Bangladeshi)
"OtherAsian" (Other Asian)
"BlackCaribbean" (Black Caribbean)
"BlackAfrican" (Black African)
"Chinese" (Chinese)
"Other" (Other ethnic group).
smokeA factor vector of smoking statuses. Possible values:
"Non" (Non-smoker)
"Ex" (Ex-smoker)
"Light" (Light smoker - less than 10 cigarettes per day)
"Moderate" (Moderate smoker - 10 to 19 cigarettes per day)
"Heavy" (Heavy smoker - 20 or more cigarettes per day).
postcodeA character vector of UK postcodes.
tdsA double vector of Townsend deprivation scores.
fhdmA logical vector indicating family history of diabetes.
htnA logical vector indicating history of hypertension.
cvdA logical vector indicating history of cardiovascular disease.
gdmA logical vector indicating history of gestational diabetes.
pcosA logical vector indicating history of polycystic ovary syndrome.
learnA logical vector indicating history of learning difficulties.
psyA logical vector indicating history of shizophrenia or bipolar affective disorder.
sterA logical vector indicating history of corticosteroid use.
statA logical vector indicating history of statin use.
apsyA logical vector indicating history of 2nd generation antipsychotic use.
A simulated dataset containing the characteristics of 50 subjects (one per row). No relationships have been simulated between variables. The dataset contains no values or combinations of values that would result in warnings or errors from any of the risk prediction functions in this package. It exists purely to allow for testing and exploration of these functions.
Benjamin G. Feakins benjamin.feakins@ndph.ox.ac.uk
The dataset is simulated, except for the postcode and tds variables, which are key-value pairs randomly drawn from an Office for National Statistics dataset.
For more information on this dataset, see the documentation for the getTDS function.
Contains OS data (C) Crown copyright and database right 2020
Contains Royal Mail data (C) Royal Mail copyright and database right 2020
Source: Office for National Statistics licensed under the Open Government Licence v.3.0
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.