powered by
Constructs a 'birp_data' object from matrices of observed counts and corresponding efforts for a single method.
birp_data(counts, efforts, times, CI_groups = NULL, location_names = NULL)
An object of type birp_data
A matrix of observed counts (J locations × K timepoints). Each row corresponds to a location and each column to a timepoint.
A matrix of observation effort with the same dimensions as `counts`.
A vector of length K specifying the timepoints.
A vector of length J specifying the control-intervention (CI) group for each location. Defaults to a single group (`group_1`) if not provided.
Optional names for the locations. Defaults to `"Location_1"`, `"Location_2"`, etc.
data <- birp_data(c(10,20,30), c(100,200,300), c(1,2,5))
Run the code above in your browser using DataLab