make.cm: Interactively Make a Community Matrix

View source: R/make.cm.R

make.cmR Documentation

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)

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.

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.

Value

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

Author(s)

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/

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. <\Sexpr[results=rd]{tools:::Rd_expr_doi("10.4159/harvard.9780674435070")}>.

See Also

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

Examples

## assign a community matrix
## Not run: CM <- make.cm(4)

LoopAnalyst documentation built on June 22, 2024, 11:59 a.m.