metsz | R Documentation |
metsz()
is a small function which calculate the MetS-Z score from danish SI values.
metsz(d, id, ethnicity, sex, wc, hdl, sbp, tri, glu)
d |
the dataframe with the data |
id |
colname of the id column |
ethnicity |
colname of the ethnicity column |
sex |
colname of the sex column (must be labelled Male and Female) |
wc |
colname of the waist circumference |
hdl |
colname of HDL |
sbp |
colname of systolic blood pressure |
tri |
colname of Triglyceride |
glu |
colname of Glucose |
Returns a dataframe with ssid and MetS-Z score
## Not run:
mm <- metsz(df,id="ssid",ethnicity = "SCRE.SC05_ethnicity",
sex = "Sex", wc = paste0(x,".wc"),
hdl = paste0(x,".BR15_cholesterol_hdl_p"),
sbp = paste0(x,".sbp"), tri = paste0(x,".BR17_triglycerid_p"),
glu = paste0(x,".BR01_glucose_p"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.