Description Usage Arguments Value Author(s) See Also Examples
A program that computes the time to deterioration in a quality of life score and print the results in a csv file according to treatment arm
1 2 |
X |
input data matrix or data frame with a quality of life score. Missing values are inserted as NA |
score |
vector with the name of the quality of life scores of interest |
order |
a vector equals to 1 if the deterioration corresponds to a decrease of the score, 2 otherwise |
ref.init |
the reference score to qualify the deterioration.
By default, |
MCID |
vector equals to the minimal clinically important difference (MCID). Several MCID can be specified |
death |
missing if patients who died without experienced a deterioration are censored at the time of the last quality of life assessment, equals to the name of the death date in the dataframe |
group |
the name of the variable in |
names.group |
the name of each treatment group to print |
sensitivity |
Boolean equals to |
file |
the name of the csv file to create with the results of the time to deterioration analysis |
this function does not return value in R console but creates a csv file with the results of the time to deterioration analysis
Amelie ANOTA
Maintainer: Amelie ANOTA <aanota@chu-besancon.fr>
1 2 3 4 5 6 7 8 9 10 11 12 | ### The time to deterioration of scores "QoL" and "pain" of the dataqol2 data
### set as compared to the baseline score
### with two MCID (5 points and 10 points)
### and according to the treatment arm called "arm"
### all sensitivity analyses are performed simultaneously to the main definition
### the created file is named "file_TTD_baseline.csv" and is located
### in the current directory
#data(dataqol2)
#write.TTD(dataqol2,score=c("QoL","pain"),order=c(1,2),MCID=c(5,10),
#group="arm",names.group=c("arm 1","arm 2"),sensitivity=FALSE,
#file="file_TTD_baseline")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.