An alternative implementation to spdep::localG intended for use with a spacetime cube.
local_g_spt(x, times, nb, wt, n_locs, nsim)
a numeric vector
a vector determining time order
a spacetime neighbors list
a weights list associated with nb
the number of unique locations
the number of simulations to run for calculating p_sim