powered by
Calculates survivorship for individuals in a population over time based on the method of Kaplan-Meier; cf. Pollock et al. (1989).
km(r, d, var = "O", conf = 0.95, age.seq=seq(1,length(r)), ylab = "Survivorship", xlab = "Age class", type = "b", plot.km = TRUE, plot.CI = TRUE, ...)
Returns a list with the following components
A vector of estimated survivorship probabilities from the 1st age class onward.
The estimated Greenwood variance for each age class.
The estimated Oakes variance for each age class.
Upper and lower confidence bound to the true survivorship.
Numbers of individuals at risk in each age or time class.
Vector of the number of deaths in each age or time class.
Type of procedure used to calculate variance in confidence intervals "O" = Oakes, "G" = Greenwood.
"O"
"G"
Level of confidence for confidence interval calculations; 1 - P(type I error)
A sequence of numbers indicating the age classes used.
Y-axis label.
X-axis label.
type argument from plot.
type
plot
Logical. Should plot be created?
Logical. Should confidence interval be overlaid on plot?
Additional arguments from plot.
Ken Aho
Details for this index are given in Pollock et al. (1989).
Pollock, K. H., Winterstein, S. R., and Curtis, P. D. (1989) Survival analysis in telemetry studies: the staggered entry design. Journal of Wildlife Management. 53(1):7-1.
##Example from Pollock (1989) r<-c(18,18,18,16,16,16,15,15,13,10,8,8,7) d<-c(0,0,2,0,0,1,0,1,1,1,0,0,0) km(r,d)
Run the code above in your browser using DataLab