Description Usage Arguments Details Value Examples
View source: R/DRAP_code_1.5.11.r
Caculate the relative change of tumor volume data or body weight data based on the baseline.
1 | RelativeChange(data,type,rm.baseline = TRUE)
|
data |
a data frame of measured tumor vloume data or body weight data of mouse. |
type |
the type of data, "Vomule" or "BodyWeight". |
rm.baseline |
a logical parameter, whether remove the baseline. |
If rm.baseline = T, the way of caculating follows like Vt/V0 - 1; if rm.baseline = F, the way of caculating follows like Vt/V0.
If rm.baseline = T, it returns the relative change of tumor volume data or body weight data; if rm.baseline = F, it returns the fold change of tumor volume data or body weight data.
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(oneAN.volume.data)
## caculate relative change of tumor volume
oneAN.v.rc <- RelativeChange(oneAN.volume.data,type = 'Volume',rm.baseline = TRUE)
head(oneAN.v.rc)
##caculate fold change of tumor volume
oneAN.v.fc <- RelativeChange(oneAN.volume.data,type = 'Volume',rm.baseline = FALSE)
head(oneAN.v.fc)
##caculate relative change of body weight data
data(oneAN.bw.data)
oneAN.bw.rc <- RelativeChange(oneAN.bw.data,type = 'BodyWeight',rm.baseline = TRUE)
head(oneAN.bw.rc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.