Determine if a series is monotonically increasing

Share:

Description

Returns TRUE if all proportions are in a monotonically increasing sequence

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.