Spatex.Dynamics.SpatialMarkov (Spatex v0.2.1)

Copy Markdown View Source

Result of Spatex.Dynamics.spatial_markov/3 (giddy.markov.Spatial_Markov).

Field names are giddy's attributes in snake_case; the upper-case conditional attributes carry a _cond suffix: T is t, P is p_cond, S is s_cond, F is f_cond.

  • k, m - number of classes of the variable and of its spatial lag; cutoffs / lag_cutoffs - class upper bounds without the final infinite one (nil when classified period by period or discrete: true); class_ids / lclass_ids - n x t class indices.
  • transitions, p - the classic Markov counts and probabilities; t - the m conditional k x k count matrices, p_cond their row-normalized versions.
  • s, f - steady state and mean first passage times of p; s_cond, f_cond - the same per lag class. They are nil for a matrix with an empty row unless fill_empty_classes: true (giddy raises there).
  • q, q_p_value, lr, lr_p_value, dof_hom - the Bickenbach-Bode homogeneity tests of t; shtest - per lag class {chi2, p_value, dof} for the difference between the conditional and overall steady states; chi2 - per lag class {chi2, p_value, dof} of the conditional counts against the overall probabilities; x2, x2_pvalue, x2_dof - their sum.
  • x2_rpvalue, x2_realizations - permutation pseudo p-value and replicates of x2 (nil with permutations: 0).

Summary

Types

t()

@type t() :: %Spatex.Dynamics.SpatialMarkov{
  chi2: [test()],
  class_ids: [[non_neg_integer()]],
  classes: [term()],
  cutoffs: [float()] | nil,
  discrete: boolean(),
  dof_hom: integer(),
  f: [[float() | :infinity]] | nil,
  f_cond: [[[float() | :infinity]] | nil],
  fill_empty_classes: boolean(),
  k: pos_integer(),
  lag_cutoffs: [float()] | nil,
  lclass_ids: [[non_neg_integer()]],
  lr: float() | :nan,
  lr_p_value: float() | :nan,
  m: pos_integer(),
  p: [[float()]],
  p_cond: [[[float()]]],
  permutations: non_neg_integer(),
  q: float() | :nan,
  q_p_value: float() | :nan,
  s: [float()] | [[float()]] | nil,
  s_cond: [[float()] | [[float()]] | nil],
  seed: non_neg_integer() | nil,
  shtest: [test() | nil],
  t: [[[float()]]],
  transitions: [[float()]],
  x2: float(),
  x2_dof: non_neg_integer(),
  x2_pvalue: float() | :nan,
  x2_realizations: [float()] | nil,
  x2_rpvalue: float() | nil
}

test()

@type test() :: {float() | :nan, float() | :nan, integer()}