fxcat {LW1949}R Documentation

Define Effect Category

Description

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

Usage

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

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

[Package LW1949 version 1.1.0 Index]