CalculateLC50: Calculate LC50 from a matrix with 3 columns: concentration,...

Description Usage Arguments Value Author(s) References Examples

View source: R/ecotoxicology.R

Description

Returns the LC50 from a matrix with 3 columns: concentration, number of exposed subjects and number of deaths

Usage

1
CalculateLC50(matrixConcExpoResp)

Arguments

matrixConcExpoResp

numeric vector

Value

the LC50

Author(s)

Jose Gama

References

Hamilton, m.a., R.c. Russo, and r.v. Thurston, 1977. Trimmed spearman-karber method for estimating median Lethal concentrations in toxicity bioassays. Environ. Sci. Technol. 11(7): 714-719; Correction 12(4):417 (1978).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#Data from the example on page 5:
#Hamilton, m.a., R.c. Russo, and r.v. Thurston, 1977.
#Trimmed spearman-karber method for estimating median
#Lethal concentrations in toxicity bioassays.
#Environ. Sci. Technol. 11(7): 714-719;
#Correction 12(4):417 (1978).
concentration<-c(.5,1,2,4,8)
exposed<-c(10,10,10,10,10)
mortality<-c(0,2,4,9,10)
CalculateLC50(cbind(concentration, exposed, mortality))

Example output

[1] 2

ecotoxicology documentation built on May 2, 2019, 11:34 a.m.