W_priors {estimateW}R Documentation

Set prior specifications for the spatial weight matrix

Description

Set prior specifications for the nn by nn spatial weight matrix W=f(Ω)W=f(\Omega), where Ω\Omega is an nn by nn unknown binary adjacency matrix (with zeros on the main diagonal), and f()f() denotes the (optional) row-standardization function

Usage

W_priors(
  n,
  W_prior = matrix(0.5, n, n),
  symmetric_prior = FALSE,
  row_standardized_prior = TRUE,
  nr_neighbors_prior = bbinompdf(0:(n - 1), nsize = n - 1, a = 1, b = 1, min_k = 0, max_k
    = n - 1)
)

Arguments

n

The number of spatial observations

W_prior

An nn by nn matrix of prior inclusion probabilities for WW

symmetric_prior

Binary value. Should the estimated adjacency matrix Ω\Omega be symmetric (default: FALSE)? if TRUE: Ω\Omega is forced symmetric; if FALSE: Ω\Omega not necessarily symmetric.

row_standardized_prior

Binary value. Should the estimated WW matrix be row-standardized (default: TRUE)? if TRUE: row-stochastic WW; if FALSE: WW not row-standardized.

nr_neighbors_prior

An nn dimensional vector of prior weights on the number of neighbors (i.e. the row sums of the adjacency matrix Ω\Omega), where the first element denotes the prior probability of zero neighbors and the last those of n1n-1. A prior using only fixed inclusion probabilities for the entries in Ω\Omega would be an nn dimensional vector of 1/n1/n. Defaults to a bbinompdf prior, with prior parameters a=1a = 1, b=1b = 1.


[Package estimateW version 0.0.1 Index]