sanity: Internal sanity check function

View source: R/spatial_lag.R

sanityR Documentation

Internal sanity check function

Description

Internal sanity check function

Usage

sanity(
  dat,
  origin = NULL,
  destination = NULL,
  w = NULL,
  y = NULL,
  wy = NULL,
  time = NULL,
  weights = NULL,
  type = NULL
)

Arguments

dat

directed dyadic dataset (data.frame)

origin

name of origin id column (character)

destination

name of destination id column (character)

w

name of distance/weights column (character)

y

name of outcome to lag (character)

wy

name of the output variable (character)

time

name of the time variable (optional) (character)

weights

weight specification: ik, jk, im, jm (character)

type

of W matrix (character)

  • specific origin: y_ij = f(sum_k!=i w * y_kj)

  • specific destination: y_ij = f(sum_m!=j w * y_im)

  • aggregate origin: y_ij = f(sum_k!=i sum_m w * y_km)

  • aggregate destination: y_ij = f(sum_k sum_m!=j w * y_km)


vincentarelbundock/btergmHelper documentation built on Aug. 24, 2023, 11:17 a.m.