getRTV | R Documentation |
getRTV
is a helper function used inside lmmModel()
to obtain a dataframe with a column RTV corresponding
to the relative tumor volume to time time_start
, and a column logRTV with the logarithm of RTV.
getRTV(data, time_start)
data |
Data frame with the tumor growth data. The input data frame columns have to have the following names:
|
time_start |
Numeric value indicating the time at which the treatment started. |
The function returns the original data frame of tumor growth data, with 3 additional columns, corresponding to:
RTV: Relative tumor volume to the tumor volume at start_time
.
logRTV: Logarithm of RTV column.
TV0: Tumor volume at start_time
.
# Load example dataset
data("grwth_data")
# Change column names
colnames(grwth_data) <- c("SampleID", "Time", "Treatment", "TV")
# Calculate relative tumor volume
getRTV(data = grwth_data, time_start = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.