get_outcome_details: Function to get the details of the outcome column

Description Usage Arguments Value Examples

View source: R/trialanalysis_input_functions.R View source: R/trialdata_analysis_input_functions.R

Description

Function to get the details of the outcome column

Usage

1
get_outcome_details(trialdata, name, related_words, multiple = FALSE)

Arguments

trialdata,

data containing individual level trial data

name,

name of the variable

related_words,

probable column names

multiple,

indicates true if there are multiple columns

Value

the name of the variable related to health outcome (any) and the unique contents if success, else error

Examples

1
2
get_outcome_details(data.frame("qol.MO"=c(1,2), "qol.PD"=c(1,2), "qol.AD"= c(1,2)),
"eq5d", "qol",TRUE)

sheejamk/MarkovModel documentation built on Jan. 23, 2020, 2:44 a.m.