dataprep: Prepare Data

Description Usage Arguments Details Value References Examples

View source: R/dataprep.R

Description

Prepare dose-effect data for evaluation.

Usage

1
dataprep(dose, ntot, nfx)

Arguments

dose

A numeric vector of unique, chemical concentrations (see Details).

ntot

A numeric vector of the number of individuals that were tested at each dose.

nfx

A numeric vector of the number of individuals that were affected at each dose.

Details

The input data are expected to be summarized by dose. If duplicate doses are provided, an error will be thrown.

Value

A data frame with eight columns (ordered by dose and proportion affected), seven numeric vectors and one logical vector:

References

Litchfield, JT Jr. and F Wilcoxon. 1949. A simplified method of evaluating dose-effect experiments. Journal of Pharmacology and Experimental Therapeutics 96(2):99-113. [link].

Examples

1
2
3
4
conc <- c(0.0625, 0.125, 0.25, 0.5, 1)
numtested <- rep(8, 5)
nalive <- c(1, 4, 4, 7, 8)
dataprep(dose=conc, ntot=numtested, nfx=nalive)

JVAdams/LW1949 documentation built on May 7, 2019, 10:14 a.m.