data <- data.frame(
age = c(45, 55, 90),
male = c(1, 0, 1),
sbp = c(120, 130, 145),
t2dm = c(0, 1, 0),
hdl = c(55, 45, 35),
ldl = c(110, 130, 160),
urineprotein = c(NA, 1, 0),
smoking = c(0, 1, 0),
exercise = c(1, 0, 1)
)
# age :age(continuous)
# male :male(category:0 = female,1 = male)
# sbp :systolic blood pressure(continuous)
# t2dm :diabetes mellitus(category:0 = non-prevalent DM,1 = prevalent DM)
# hdl :high-density lipoprotein cholesterol(continuous)
# ldl :low-density lipoprotein cholesterol(continuous)
# urineprotein :proteinuria(category:0 = negative,1 = positive)
# smoking :smoking status(category:0 = never/past smoker,1 = current smoker)
# exercise :weekly exercise(category:0 = less than 3 times,1 = 3 times or more)
hisayama(data)
Run the code above in your browser using DataLab