spflow network classes

overview and construtors

spflow_network_classes

Overview on spflow network classes

spflow_network()

Create a spflow_network-class()

spflow_network_pair()

Create a spflow_network_pair-class()

spflow_network_multi()

Create a spflow_network_multi-class()

class description and methods

dat(<spflow_network>) `dat<-`(<spflow_network>) id(<spflow_network>) `id<-`(<spflow_network>) neighborhood(<spflow_network>) `neighborhood<-`(<spflow_network>) nnodes(<spflow_network>) update_dat(<spflow_network>)

Class spflow_network

dat(<spflow_network_pair>) `dat<-`(<spflow_network_pair>) id(<spflow_network_pair>) `id<-`(<spflow_network_pair>) npairs(<spflow_network_pair>) nnodes(<spflow_network_pair>) update_dat(<spflow_network_pair>)

Class spflow_network_pair

id(<spflow_network_multi>) complete_pairs(<spflow_network_multi>) dat(<spflow_network_multi>) `dat<-`(<spflow_network_multi>) neighborhood(<spflow_network_multi>) nnodes(<spflow_network_multi>) npairs(<spflow_network_multi>) pull_member(<spflow_network_multi>) update_dat(<spflow_network_multi>)

Class spflow_network_multi

spflow models

Estimation

spflow()

Estimate spatial interaction models that incorporate spatial dependence

spflow_control()

Control parameters passed to spflow()

spflow_refit()

Refitting spflow models

compare_results()

Compare results of multiple spflow_models

class description and methods

coef(<spflow_model>) fitted(<spflow_model>) logLik(<spflow_model>) mcmc_results(<spflow_model_mcmc>) nobs(<spflow_model>) neighborhood(<spflow_model>) resid(<spflow_model>) results(<spflow_model>) results_flat(<spflow_model>) sd_error(<spflow_model>) varcov(<spflow_model_varcov>)

Class spflow_model

impacts_matrix(<spflow_model>)

Compute spatial impacts matrix

plot(<spflow_model>)

Diagnostic plots for the results of a spatial interaction model

pair_cor()

Correlation matrices for OD data

predict_effect() predict(<spflow_model>)

Prediction methods for the spflow_model-class()

spflow_map()

Geographic representation of flows

Other functions

cor_image()

Graphical display of a correlation matrix

expand_spflow_neighborhood()

Derive the OD-level neighborhood matrices

map_flows()

Geographical representation of origin-destination flows

nb2Mat()

Convert the nb-class from spdep to a sparse Matrix

pair_merge()

Create a long form data.frame of origin-destination pairs

spflow_moran_plots()

Moran scatter plots of interaction data

Package data

multi_net_usa_ge germany_grid usa_net usa_grid germany_net simulation_params

Simulated data for stylized versions of Germany and the USA

paris10km_municipalities paris10km_commuteflows paris10km_neighborhood

Example data for commuting flows within Paris