fxcat function

Define Effect Category

Define Effect Category

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

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).

Returns

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

Examples

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))
  • Maintainer: Jean V. Adams
  • License: GPL
  • Last published: 2017-03-20