get_trial_arm_details {packDAMipd} | R Documentation |
Function to get the details of the trial arm
Description
Function to get the details of the trial arm
Usage
get_trial_arm_details(trialdata)
Arguments
trialdata |
data containing individual level trial data |
Details
expecting the data contains the information on trial arm preferably column names "arm", "trial" or "trial arm". If multiple column names match these, then first match will be chosen.
Value
the name of the variable related to trial arm and the unique contents if success, else error
Examples
get_trial_arm_details(data.frame(
"Age" = c(21, 15),
"arm" = c("control", "intervention")
))
[Package packDAMipd version 1.1.0 Index]