Learn R Programming

LoopAnalyst (version 1.2-7)

make.cm: Interactively Make a Community Matrix

Description

Make and validate a new community matrix by soliciting the number of varibles, variable names and interactions between each.

Usage

make.cm(n)

Value

a labeled (-1,0,1) square matrix.

Arguments

n

an integer value denoting the number of component variables modeled by the community matrix. The minimum number of variables is 2. If left unspecified, make.cm will prompt for the number of variables.

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

make.cm prompts the user for the number of variables (if not specified as an option), variable names, and the qualitative signifier (-1, 0, or 1) of direct causal effect from and to each 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. <tools:::Rd_expr_doi("10.4159/harvard.9780674435070")>.

See Also

out.cm, graph.cm, make.cem.

Examples

Run this code
## assign a community matrix
if (FALSE) CM <- make.cm(4)

Run the code above in your browser using DataLab