data <- data.frame(
af = c(1, 0, 0, 1, 1, 0),
sbp = c(110, 125, 135, 150, 170, 180),
dbp = c(75, 75, 85, 95, 105, 110),
ht_medication = c(0, 1, 0, 1, 0, 1),
age = c(39, 49, 59, 69, 79, 80),
t2dm = c(0, 0, 1, 1, 1, 0),
male = c(1, 1, 0, 0, 0, 1),
smoking = c(1, 0, 1, 0, 0, 1)
)
# af :atrial fibrillation(category: 0 = negative, 1 = positive)
# sbp :systolic blood pressure(continuous)
# dbp :diastolic blood pressure(continuous)
# ht_medication :hypertensive medication user(category:0 = non-user,1 = user)
# age :age(continuous)
# t2dm :diabetes mellitus(category:0 = non-prevalent DM,1 = prevalent DM)
# male :male(category:0 = female,1 = male)
# smoking :smoking status(category:0 = never/past smoker,1 = current smoker)
jals_stroke_wECG(data)
Run the code above in your browser using DataLab