We have height of the subjects collected in centimeters
For analysis purposes, let us assume that we need to report the height in meters as well
So, we are creating a new set of rows with a different parameter name to store the converted values
Height (cm)
Height (cm)
Height (cm)
Height (cm)
Height (m)
Height (m)
Height (m)
Height (m)
VARIABLE_NAME
VARIABLE_LABEL
DERIVATION
ADT
Analysis Date
1. Derive this variable using VS.VSDTC 2. Extract the date portion from VSDTC and convert it to numeric value.
PARAM
Parameter
A. For source parameters: 1. Derive this variable using VS.VSTEST and VS.VSSTRESU 2. When VSTESTCD in ('HEIGHT') then set PARAM as VSTEST||" ("||VSTRESU||")" B. Create a derived paramter 'Height (m)' using the source parameter 'Height (cm)'.
PARAMCD
Parameter Code
A. For the source parameters, set to VS.VSTESTCD B. For the derived paramter 'Height (m)' set to 'HEIGHTMT'
AVAL
Analysis Value
A. For the source parameters set to VS.VSSTRESN B. For the derived parameter 'Height (m)': 1. Set AVAL to (AVAl/100) where PARAMCD="HEIGHT" 2. Round the AVAL to two decimals
Complete SAS code to generate the output is available for registered users!
Already registered! Login Not registered, you can signup here! Signup
Dont want to register?
You can directly purchase this lesson (code+input data) here
You can purchase this lesson (code+input data) here
If you are looking to purchase subscription for full access to data and programs for all lessons (TASKS+SDTM+ADaM+TFLs), you can send us a message on +91-7330--77--66--49-- on Whatsapp.
R data is available only for R subscribers.
You can contact us on +91-7330--77--66---49 for purchasing subscription to R programs and data
R codes are available only for R subscribers.
You can contact us on +91-7330--77--66---49 for purchasing subscription to R programs and data