Learn R Programming

trafficCAR (version 0.1.0)

moran_residuals: Moran's I for trafficCAR residuals

Description

Computes Moran's I statistic for model residuals using the model adjacency.

Usage

moran_residuals(
  fit,
  type = c("raw", "structured", "unstructured"),
  nsim = 199,
  method = c("analytic", "permutation")
)

Value

An object of class `traffic_moran`.

Arguments

fit

A `traffic_fit` object.

type

Residual type: "raw" or "unstructured".

nsim

Number of permutations for permutation test.

method

"analytic" or "permutation".