autointensity {event} | R Documentation |
autointensity
plots the autointensity function of a point
process, including a solid horizontal line indicating the constant
intensity of a Poisson process.
autointensity(times, window=NULL, maxlag=total/10, ylab="Conditional probability", xlab="Lag", main="Autointensity function", xlim=c(0,max(times)), ylim=c(0,if(plotse)max(se1)else max(z$density)), lty=1, plot=TRUE, plotse=TRUE, add=FALSE, ...)
times |
Vector of times between events. |
window |
Width of grouping interval. |
maxlag |
Maximum lag to be calculated, by default the maximum interevent time. |
plot |
If FALSE, values are returned but the function is not plotted. |
plotse |
If TRUE, plots pointwise two-standard error bands around the curve. |
add |
If TRUE, add curve to an existing plot. |
others |
Plotting control options. |
A list containing the coordinates of the plotted function and the standard error bands.
J.K. Lindsey
Guttorp, P. (1995) Stochastic Modeling of Scientific Data. Chapman & Hall, pp. 229, 238-240.
times <- rgamma(100,2,scale=4) autointensity(times, window=3)