R/Strauss89full.fun.R

Defines functions Strauss89full.fun

Documented in Strauss89full.fun

Strauss89full.fun <-
function (dd, alpha){
 		names(dd)<-c("yrs", "sights")
 		dd<-subset(dd, dd$sights>0)
 		alphs<-seq(0.01, 1, 0.01)
		conf.level<-1-alphs
		a<- min(dd$yrs)
		b<- max(dd$yrs)
		R<- b-a
		H<- length(dd$yrs)
		B<- ((1-conf.level)^(-1/(H-1)) - 1)
		rc<- B*R
		res<-data.frame(yrs=rev((b + rc)),chance=1-rev(conf.level))
		return(res)
 }

Try the sExtinct package in your browser

Any scripts or data that you put into this service are public.

sExtinct documentation built on May 30, 2017, 7:23 a.m.