check_time: check if the time
within a time serie
is (1) numeric, (2) unique, (3) minimal value is 0.
check_concentration: check if the concentration
is numeric
and always positive.
check_Nsurv: check if the Nsurv
is (1) integer and
(2) always positive (3) can be NA.
check_TimeNsurv: check if the pair time
- Nsurv
within
a time serie
satisfies (1) Nsurv at t=0 is >0, (2) decreasing.
check_concNsurv: check if the pair conc
- Nsurv
within
a time serie
satisfies that the timeline of concentration covers
timeline of Nsurv.
checking_table: add msg
in a data.frame data
if
check
are not all TRUE.
is_exposure_constant: Test in a well-formed argument to function
SurvData
if the concentration is constant and different
from NA
for each replicate (each time-serie).
is.between: Test if x
is between min
and max
check_time(data)check_concentration(data)
check_Nsurv(data)
check_TimeNsurv(data)
check_concNsurv(data)
checking_table(data, check, msg)
is_exposure_constant(data)
is.between(x, min, max)
a boolean TRUE
if concentration in replicate
is constant,
or FALSE
if the concentration in at least one of the replicates is time-variable,
and/or if NA
occurs.
a data.frame
binary vector of TRUE/FALSE
a message to add to the data.frame
parameter to check if it's between min and max
minimal value. x must be greater than min
maximal value. x must be lower than max