powered by
The function computes and plots TSH, fT3 and fT4 values with respect to the provided reference range.
thyroid(TSH, fT3, fT4, TSHref, fT3ref, fT4ref)
Invisible data.frame with the relative values.
data.frame
numeric vector of length 1: measured TSH concentration.
numeric vector of length 1: measured fT3 concentration.
numeric vector of length 1: measured fT4 concentration.
numeric vector of length 2: reference range TSH.
numeric vector of length 2: reference range fT3.
numeric vector of length 2: reference range fT4.
Matthias Kohl Matthias.Kohl@stamats.de
A simple function that computes the relative values of the measured values with respect to the provided reference range and visualizes the values using a barplot. Relative values between 40% and 60% are marked as O.K..
thyroid(TSH = 1.5, fT3 = 2.5, fT4 = 14, TSHref = c(0.2, 3.0), fT3ref = c(1.7, 4.2), fT4ref = c(7.6, 15.0))
Run the code above in your browser using DataLab