IsMonotonicallyIncreasing {ecotoxicology}R Documentation

Determine if a series is monotonically increasing

Description

Returns TRUE if all proportions are in a monotonically increasing sequence

Usage

IsMonotonicallyIncreasing(p)

Arguments

p

numeric vector

Value

True is the series is monotonically increasing

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

#Data from the example on page 8:
#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(1.1,2.3,4.5,8.8,17.1)
exposed<-c(10,10,9,10,10)
mortality<-c(1,5,4,2,7)
p<-mortality/exposed
x<-log(concentration)
IsMonotonicallyIncreasing(p)

[Package ecotoxicology version 1.0.1 Index]