| matrices | R Documentation |
matrices() is the matrix-oriented companion to summary() and edges().
It returns the core estimated matrices invisibly and prints each matrix
compactly with rounding, so users can inspect coefficients without digging
through object internals.
matrices(x, ...)
## Default S3 method:
matrices(x, digits = 3, ...)
## S3 method for class 'cograph_network'
matrices(x, digits = 3, ...)
## S3 method for class 'netobject'
matrices(x, digits = 3, ...)
## S3 method for class 'netobject_group'
matrices(x, digits = 3, ...)
## S3 method for class 'gvar_result'
matrices(x, digits = 3, ...)
## S3 method for class 'var_result'
matrices(x, digits = 3, ...)
## S3 method for class 'net_mlvar'
matrices(x, digits = 3, ...)
## S3 method for class 'net_usem'
matrices(x, digits = 3, ...)
## S3 method for class 'net_gimme'
matrices(x, digits = 3, ...)
## S3 method for class 'preprocess_result'
matrices(x, digits = 3, ...)
## S3 method for class 'rolling_var_result'
matrices(x, fit = 1L, digits = 3, ...)
## S3 method for class 'rolling_gvar_result'
matrices(x, fit = 1L, digits = 3, ...)
## S3 method for class 'stability_result'
matrices(x, digits = 3, ...)
## S3 method for class 'model_comparison'
matrices(x, fit = 1L, digits = 3, ...)
## S3 method for class 'var_list'
matrices(x, subject = 1L, digits = 3, ...)
## S3 method for class 'gvar_list'
matrices(x, subject = 1L, digits = 3, ...)
x |
An idiographic result or cograph network/group. |
... |
Passed to methods. |
digits |
Number of digits used for printing. Default |
fit |
Stored fit name or index for result containers that optionally keep fitted models, such as rolling results and model comparisons. |
subject |
Subject name or index for per-subject VAR/GVAR result lists. |
Invisibly, a named list of matrices.
W <- matrix(c(0, 0.3, -0.2, 0), 2, 2,
dimnames = list(c("A", "B"), c("A", "B")))
x <- structure(list(weights = W, method = "relative", directed = TRUE),
class = "cograph_network")
matrices(as_netobject(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.