Learn R Programming

mrf2d (version 0.2.0)

smr_stat: Summary Statistics

Description

Computes the summary count statistics of a field given an interaction structure and a restriction family.

Usage

smr_stat(Z, mrfi, family)

Arguments

Z

A matrix object containing the observed MRF. NA values can be used to create a subregion of the lattice for non-rectangular data.

mrfi

A mrfi object representing the interaction structure.

family

The family of parameter restrictions to potentials. Families are: 'onepar', 'oneeach', 'absdif', 'dif' or 'free'. See mrf2d-familiy.

Value

A numeric vector with the summarized counts.

Details

The order the summarized counts appear in the summary vector matches the order in smr_array().

Examples

Run this code
# NOT RUN {
smr_stat(Z_potts, mrfi(1), "onepar")
smr_stat(Z_potts, mrfi(1), "oneeach")

# }

Run the code above in your browser using DataLab