dataprep {LW1949}R Documentation

Prepare Data

Description

Prepare dose-effect data for evaluation.

Usage

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

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)

[Package LW1949 version 1.1.0 Index]