Learn R Programming

LoopAnalyst (version 1.2-7)

validate.cm: Validate a Community Matrix

Description

Validates a community matrix, returning descriptive errors if validation fails and nothing otherwise.

Usage

validate.cm(CM)

Arguments

CM

A potential community matrix to be tested.

Author

Alexis Dinno (alexis.dinno@pdx.edu)

Please contact me with any questions, bug reports or suggestions for improvement. Fixing bugs will be facilitated by sending along:

[1]a copy of your relevant R data file (de-labeled or anonymized is fine),
[2]a copy of the command syntax used, and
[3]a copy of the exact output of the command.

https://alexisdinno.com/LoopAnalyst/

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, it is not a fully specified matrix, and there is at least one direct or indirect path from each element to each element.

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. <tools:::Rd_expr_doi("10.4159/harvard.9780674435070")>.

See Also

make.cm.

Examples

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

Run the code above in your browser using DataLab