dat_qdr {QDiabetes} | R Documentation |
QDiabetes Sample Dataset
Description
A simulated sample dataset for exploring the use of the QDR2013
, QDR2018A
, QDR2018B
and QDR2018C
type 2 diabetes risk prediction functions of this package.
Usage
data("dat_qdr")
Format
A data frame with 50 observations on the following 21 variables:
sex
A factor vector of genders. Possible values:
"Female"
or"Male"
.age
An integer vector of ages (years).
bmi
A double vector ofbody-mass indexes (kg/m^2).
ht
A double vector of heights (m).
wt
A double vector of weights (kg).
fpg
A double vector of fasting plasma glucose test results (mmol/L).
hba1c
A double vector of glycated haemoglobin test results (mmol/mol).
ethn
A 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).
-
smoke
A 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).
-
postcode
A character vector of UK postcodes.
tds
A double vector of Townsend deprivation scores.
fhdm
A logical vector indicating family history of diabetes.
htn
A logical vector indicating history of hypertension.
cvd
A logical vector indicating history of cardiovascular disease.
gdm
A logical vector indicating history of gestational diabetes.
pcos
A logical vector indicating history of polycystic ovary syndrome.
learn
A logical vector indicating history of learning difficulties.
psy
A logical vector indicating history of shizophrenia or bipolar affective disorder.
ster
A logical vector indicating history of corticosteroid use.
stat
A logical vector indicating history of statin use.
apsy
A logical vector indicating history of 2nd generation antipsychotic use.
Details
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.
Author(s)
Benjamin G. Feakins benjamin.feakins@ndph.ox.ac.uk
Source
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
Examples
data(dat_qdr)
str(dat_qdr)