This function creates a reproData
object from experimental
data provided as a data.frame
. The resulting object can then be used
for plotting and model fitting. The reproData
class is a sub-class
of survData
, meaning that all functions and method available for
survival analysis can be used with reproData
objects.
reproData(x)
An object of class reproData
.
a dataframe as expected by survData
containing one
additional Nrepro
column of class integer
with positive
values only. This column should
provide the number of offspring produced since the last observation.
The x
argument contains the experimental data, and should have
the same structure than the argument of survData
, plus a single
additional column providing the total number of offspring observed since the
last time point. The function fails if x
does not meet the
expected requirements. Please run reproDataCheck
to ensure
x
is well-formed.
Note that experimental data with time-variable exposure are not supported.