Learn R Programming

scov (version 0.1.2)

calc_mean_neighbor_effect: Calculates the average correlation for the spatial effect

Description

Calculates the average correlation for the spatial effect

Usage

calc_mean_neighbor_effect(matList, beta, delta, adj_positions)

Value

the average correlation for the spatial effect

Arguments

matList

list of pairwise and spatial matrices

beta

autocorrelation parameter of the CAR model

delta

linear effect of the CAR model correlation matrix

adj_positions

positions within the adjacency matrix