Hi Jeff, I've managed to work through and adapt the code you've provided right up to running the tMsPGOcc function and I'm running across two issues:
1) I get an "error in colMeans [...] x must be numeric" error. As far as I can tell this is because several of my occupancy covariates are factors. I assume it is possible to use factors in the model, as for other occupancy models, and I'm just missing something?
2) When I try to run the function without factors, it begins to run but R Studio terminates as soon as the first chain begins. Is this a common occurrence? Happy to provide any code, data, etc. that might help pinpoint the problem. For what it's worth, in case it's a memory issue, I'm working with a dataset of 17 species, over 9 primary sampling periods, with 21 secondary sampling periods per primary.
Thanks,
Jarrad