Description Usage Arguments Value Author(s) See Also Examples
This function fits a variety of mobility models to a supplied movement matrix (M
) and covariates (D
and N
) using Bayesian MCMC inference.
The function specifies the type of mobility model and serves as a wrapper for the fit_jags
function.
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
a list containing mobility data and covariates. The list object must include EITHER
|
model |
character vector indicating which mobility model to fit to the data. Mobility models include: |
type |
character vector indicating the particular sub-type of mobility model to fit.
See model list vignette for more detailed description of each model type. |
hierarchical |
Applies only to the |
n_chain |
number of MCMC sampling chains |
n_burn |
number of iterations to discard before sampling of chains begins (burn in) |
n_samp |
number of iterations to sample each chain |
n_thin |
interval to thin samples |
DIC |
logical indicating whether or not to calculate the Deviance Information Criterion (DIC) (default = |
parallel |
logical indicating whether or not to run MCMC chains in parallel or sequentially (default = |
An object of class mobility.model
containing model information, data, and fitted model parameters
John Giles
Other model:
check()
,
compare()
,
fit_jags()
,
fit_prob_travel()
,
predict()
,
residuals()
,
summary()
1 2 3 4 5 | mod <- mobility(data=mobility_matrices, model='gravity', type='transport')
mod <- mobility(data=mobility_matrices, model='radiation', type='finite')
mod <- mobility(data=mobility_matrices, model='departure-diffusion', type='power')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.