| birp_data | R Documentation |
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)
counts |
A matrix of observed counts (J locations × K timepoints). Each row corresponds to a location and each column to a timepoint. |
efforts |
A matrix of observation effort with the same dimensions as 'counts'. |
times |
A vector of length K specifying the timepoints. |
CI_groups |
A vector of length J specifying the control-intervention (CI) group for each location. Defaults to a single group ('group_1') if not provided. |
location_names |
Optional names for the locations. Defaults to '"Location_1"', '"Location_2"', etc. |
An object of type birp_data
data <- birp_data(c(10,20,30), c(100,200,300), c(1,2,5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.