Learn R Programming

LoopAnalyst (version 1.1-1)

validate.cm: Validate a Community Matrix

Description

Validates a community matrix, returning descriptive errors if validation fails and a value of TRUE otherwise.

Usage

validate.cm(CM)

Arguments

CM
A potential community matrix to be tested.

Value

  • TRUE.

Details

A community matrix is deemed valid if it is a square matrix, with no missing values, where each element has the value -1, 0 or 1, and each element has at least one parent and one child variable.

References

Puccia, C. J. and Levins, R. (1986) Qualitative Modeling of Complex Systems: An Introduction to Loop Analysis and Time Averaging. Cambridge: Harvard University Press.

See Also

make.cm.

Examples

Run this code
## assess community matrix
data(community.matrix)
validate.cm(community.matrix)

Run the code above in your browser using DataLab