# `Spatex.Inequality.TheilD`
[🔗](https://github.com/CountlinkX-Solutions/spatex/blob/v0.2.1/lib/spatex/inequality/theil_d.ex#L1)

Result of `Spatex.Inequality.theil_d/3` (`inequality.TheilD` / `TheilDSim`).

`t` is Theil's T, `bg` its between-group part, `wg = t - bg` the within-group part. For a
vector input they are floats, for an `n x t` matrix lists with one value per column.
`bg_pvalue` is the permutation pseudo p-value of `bg` (the share of replicates with `bg*` at least `bg`, counting the observation: `(1 + count) / (P + 1)`) and is
`nil` with `permutations: 0`.

# `t`

```elixir
@type t() :: %Spatex.Inequality.TheilD{
  bg: float() | [float()],
  bg_pvalue: float() | [float()] | nil,
  permutations: non_neg_integer(),
  seed: non_neg_integer() | nil,
  t: float() | [float()],
  wg: float() | [float()]
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
