View source: R/nphawkes_functions.R
ci_plot | R Documentation |
In this function, the estimated conditional intensity is plotted against the number of events. The estimated conditional intensity is found by taking the median value in each month and multiplying it by the number of days in that month.
ci_plot( model, min_date = model$input$ref_date, max_date = model$data$dates[nrow(model$data)], superthin )
model |
the output from |
min_date |
the minimum date to be shown on the plot |
max_date |
the maximum date to be shown on the plot |
superthin |
the output from |
a plot that shows the estimated conditional intensity as a black line with the number of monthly events as gray vertical lines
data("hm.csv") out = misd(dates = hm$t, ref_date = "1999-10-16", lat = hm$lat, lon = hm$lon, marks = hm$m, time_breaks = c(0,0.1, 0.5, 1,7,93,600), space_breaks = c(0,0.5, 1, 10, 25, 100), mark_breaks = c(3, 3.1,3.3, 4, 5, 8), just_times = T) st = super_thin(out) ci_p = ci_plot(out, st)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.