Data

Simulated data and generalized data objects

travel_data_sim

Simulated travel data

travel_data_template

Generalized template for travel data

mobility_matrices

Example data matrices required by mobility model functions

Modeling and simulation

Fitting, summarizing, and checking mobility model objects

mobility()

Fit mobility model to data

fit_jags()

Fit Bayesian model using MCMC

fit_prob_travel()

Estimate probability of travelling outside origin

summary()

Calculate summary statistics for 'mobility.model' class

check()

Check goodness of fit for 'mobility.model' class

predict()

Prediction and simulation method for 'mobility.model' class

compare()

Compare the goodness of fit of multiple mobility models

residuals()

Extract model residuals

Utility

Helper functions to synthesis data objects

get_admin_level()

Find the lowest admin unit

get_beta_params()

Get parameters of Beta distribution

get_crossdist()

Get distance matrix for two different set of coordinates

get_distance_matrix()

Build distance matrix from XY coordinates

get_gamma_params()

Get parameters of Gamma distribution

get_mob_matrix()

Get mobility matrix from longform data

get_pop_vec()

Get unique origin and destination names

get_stay_data()

Make data set of travel and stays

get_unique_coords()

Get unique coordinates

get_unique_ids()

Get unique origin and destination names