Skip to contents

Print Method for Multilevel Network Object

Usage

# S3 method for class 'netobject_ml'
print(x, ...)

Arguments

x

A netobject_ml.

...

Additional arguments (ignored).

Value

The input object, invisibly.

Examples

# \donttest{
set.seed(1)
obs <- data.frame(
  id  = rep(1:5, each = 8),
  A   = rnorm(40), B = rnorm(40),
  C   = rnorm(40), D = rnorm(40)
)
net_ml <- build_network(obs, method = "cor",
                         params = list(id = "id"), level = "both")
print(net_ml)
#> Multilevel Network (method: cor)
#> -- Between-person --
#>   Nodes: 4  |  Edges: 6
#>   Sample size: 5 (unique persons)
#> -- Within-person --
#>   Nodes: 4  |  Edges: 6
#>   Sample size: 40 (observations)
# }