estimate_outcomes | R Documentation |
estimate_outcomes
fits a Bayesian hierarchical model to the histories
of nest revisitation to estimate the outcome of nesting attempts.
estimate_outcomes(
fixes,
visits,
model = "null",
mcmc_params = list(burn_in = 1000, n_chain = 2, thin = 5, n_adapt = 1000, n_iter =
10000)
)
fixes |
A matrix of the number of GPS fixes on each day of the nesting
attempt as returned by |
visits |
A matrix of the number of nest visits on each day of the nesting
attempt as returned by |
model |
Type of model to be run. One of "null", "p_time", "phi_time", or "phi_time_p_time". |
mcmc_params |
List of MCMC parameters. |
Data can be passed from format_attempts
to the function
arguments fixes
and visits
.
The function runs a JAGS MCMC with uninformative priors for the estimation of
nest survival. Parameters for the MCMC can be specified by the user by passing
them as a list to mcmc_params
.
The user can choose among four possible models: a null model with constant p and phi; a model where p varies with time; a model where phi varies with time; and a model where both p and phi vary with time.
A list of mcarray
objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.