metsz: Calculation of MetS-Z score (metsz)

View source: R/metsz.R

metszR Documentation

Calculation of MetS-Z score (metsz)

Description

metsz() is a small function which calculate the MetS-Z score from danish SI values.

Usage

metsz(d, id, ethnicity, sex, wc, hdl, sbp, tri, glu)

Arguments

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

Value

Returns a dataframe with ssid and MetS-Z score

Examples

## 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)

lilleoel/clintools documentation built on April 17, 2025, 6:09 p.m.