Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

reproData

Creates a dataset for reproduction toxicity analysis


Description

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.

Usage

reproData(x)

Arguments

x

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.

Details

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.

Value

An object of class reproData.

Examples

# (1) Load reproduction dataset
data(cadmium1)

# (2) Create an object of class "reproData"
dat <- reproData(cadmium1)
class(dat)

morse

Modelling Tools for Reproduction and Survival Data in Ecotoxicology

v3.3.1
GPL (>= 2)
Authors
Virgile Baudrot [aut], Sandrine Charles [aut], Marie Laure Delignette-Muller [aut], Wandrille Duchemin [ctb], Benoit Goussen [ctb], Nils Kehrein [ctb], Guillaume Kon-Kam-King [ctb], Christelle Lopes [ctb], Philippe Ruiz [aut], Alexander Singer [ctb], Philippe Veber [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.