RelativeChange: Caculate the relative change of tumor volume data or body...

Description Usage Arguments Details Value Examples

View source: R/DRAP_code_1.5.11.r

Description

Caculate the relative change of tumor volume data or body weight data based on the baseline.

Usage

1
RelativeChange(data,type,rm.baseline = TRUE)

Arguments

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.

Details

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.

Value

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.

Examples

 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)

SCBIT-YYLab/DRAP documentation built on April 7, 2020, 2:03 a.m.