Prepare Stan Data from Real Tracking Dataset
Arguments
- df
A data.frame containing GPS points with columns: x, y, animal_id, and any user-specified covariates
- include_hab_cov
Logical; whether to include habitat covariates
- include_ind_cov
Logical; whether to include individual-level covariates
- hab_cov_names
Character vector of habitat covariate column names
- ind_cov_names
Character vector of individual-level covariate column names
- include_cell_effect
Logical; whether to include spatial cell effect
- grid_bounds
Named list with xmin, xmax, ymin, ymax (only required if include_cell_effect = TRUE)
- grid_res
Grid resolution in meters (required if include_cell_effect = TRUE), please make sure that the grid bounds are divisible by the grid resolution