fxcat: Define Effect Category

Description Usage Arguments Value Examples

Description

Define three effect categories, 0 for none affected, 100 for all affected, and 50 for other proportions affected.

Usage

1
fxcat(dat)

Arguments

dat

A data frame of toxicity data, including at least two variables: ntot (the number of individuals tested) and nfx (the number of affected individuals).

Value

An integer vector the same length as prob with categories of 0, 50, or 100.

Examples

1
2
3
4
5
toxdat <- data.frame(
  dose=c(0.0625, 0.125, 0.25, 0.5),
  ntot=rep(8, 4),
  nfx = c(0, 4, 6, 8))
cbind(toxdat, fxcat(toxdat))

LW1949 documentation built on May 2, 2019, 6:11 a.m.