Modify the bugs data object depending on the type of model you are running
Source:R/getBugsData.R
getBugsData.Rd
This function is primarily for internal use within occDetFunc
. It is used to
update the bugs data according to the needs of each model type.
Arguments
- bugs_data
The bugs data object. This is a list specified in
occDetFunc
aslist(y = as.numeric(focal), Year = TP, Site = rownum, nyear = nTP, nsite = nrow(zst), nvisit = nrow(occDetdata[i,]))
. Where focal is a binary (0/1) of is the focal species is present, Year is the time periods or survey periods, Site are the site identifiers, nyear is the number of years in the data, nsite is hte number of sites and nVisit is the number of visits- modeltype
Character, one of: intercept, centering, jul_date, catlistlength, contlistlength. See
occDetFunc
for more information.- verbose
Logical, if true progress is reported to the console
- occDetData
The 'raw' data used to create the
bugs_data
. This should have a column 'L' for list length and a column 'JulDate' for Julian date