R/plotHR.R

plotHR <-
function(dat,tmin,tmax,N,h=NULL,alpha=1/5,bound=Inf){
	a<-(N*tmin):(N*tmax); a<-a/N; z<-c()
	for (k in a){z<-c(z , HR(dat,k,h,alpha,bound))}
	plot(a,z,type="l",main=paste("Estimator of the hazard rate function"),xlab="Time",ylab="Hazard rate")
}

Try the EstSimPDMP package in your browser

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

EstSimPDMP documentation built on May 2, 2019, 3:40 p.m.