behav_gibbs_sampler {bayesmove}  R Documentation 
Internal function that runs RJMCMC on a single animal ID
Description
This function serves as a wrapper for samp_move
by running this
sampler for each iteration of the MCMC chain. It is called by
segment_behavior
to run the RJMCMC on all animal IDs
simultaneously.
Usage
behav_gibbs_sampler(dat, ngibbs, nbins, alpha, breakpt, p)
Arguments
dat 
A data frame that only contains columns for the animal IDs and for each of the discretized movement variables. 
ngibbs 
numeric. The total number of iterations of the MCMC chain. 
nbins 
numeric. A vector of the number of bins used to discretize each
movement variable. These must be in the same order as the columns within

alpha 
numeric. A single value used to specify the hyperparameter for
the prior distribution. A standard value for 
breakpt 
numeric. A vector of breakpoints if prespecifying where they
may occur, otherwise 
p 
An object storing information from

Value
A list of the breakpoints, the number of breakpoints, and the log marginal likelihood at each MCMC iteration, as well as the time it took the model to finish running. This is only provided for the data of a single animal ID.