make_weights: make_weights

View source: R/make_weights.R

make_weightsR Documentation

make_weights

Description

Create 2 weight matrices to capture asymmetric spatial effects for strip-type intercropping designs.

Usage

make_weights(n)

Arguments

n

Number of observations.

Value

W_BA

A n \times n spatial weight matrix capturing the locations of type A that are adjacent to locations of type B.

W_AB

A n \times n spatial weight matrix capturing the locations of type B that are adjacent to locations of type A.

Author(s)

Sjoerd Hermes, Joost van Heerwaarden and Pariya Behrouzi
Maintainer: Sjoerd Hermes sjoerd.hermes@wur.nl

References

1. Hermes, S., van Heerwaarden, J., and Behrouzi, P. (2023). A Spatial Autoregressive Graphical Model with Applications in Intercropping. arXiv preprint, arXiv:2308.04325.

Examples

make_weights(20)

SAGM documentation built on May 29, 2024, 12:32 p.m.

Related to make_weights in SAGM...