Statistics for A variational Bayes approach to the analysis of occupancy models