Given a space-time-lagged neighbor list and a weights lists, e.g. made by
st_dist_band()
or st_contiguity()
, create a corresponding weights list.
spt_wt(wt, nbt, n_times, n_locs, k)
a weight list with same cardinality as nbt
a weights lists created from a spacetime object's geometry context.
a time-lagged spatial neighbors list created by spt_nb()
the number of time slices
the number of locations
It is intended that spt_wt()
is used following the use of spt_nb()
using the same input arguments. This ensures that the time-lagged spatial
weights are correctly associated with the time-lagged spatial neighbors.
spt_nb()
for creating spacetime neighbors which are inputs into spacetime weights