Description Usage Arguments Value Author(s) See Also
View source: R/hmob_model_funcs.R
This function fits a hierarchical model that estimates the probability an individual travels outside their home location within the time period of the survey (tau). The model estimates both the overall population-level probability of travel (tau_pop) and the origin-level probability of travel (tau_i). Further this method is designed for sparse observations that typically result from travel survey data, where unobserved routes of travel regress to the population mean.
1 2 3 4 5 6 7 8 9 10 | fit.prob.travel(
V.travel,
V.tot,
n.chain = 4,
n.burn = 1000,
n.samp = 1000,
n.thin = 1,
DIC = FALSE,
parallel = FALSE
)
|
V.travel |
named vector of total number of people that reported travelling outside their home location |
V.tot |
named vector of the total number of individuals in travel survey for each location |
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) |
parallel |
logical indicating whether or not to run MCMC chains in parallel or sequentially (default = FALSE) |
n.adapt |
number of adaptive iterations |
dataframe giving input data along with estimates of travel probability for each location
John Giles
Other model:
fit.gravity()
,
fit.jags()
,
rjags.combine()
,
rjags.mcmc.list()
,
summarize.hmob()
Other gravity:
fit.gravity()
,
sim.gravity.duration()
,
sim.gravity()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.