Skip to contents

Print contents of CVN object

Usage

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

Arguments

x

Object of classs 'CVN'

...

Additional arguments to pass

See also

Examples

path <- system.file("cvnfit.RData", package = "CVN")
load(path)

print(fit)
#> Covariate-varying Network (CVN)
#> 
#> ✓ all converged
#> 
#> Number of graphs (m)    : 9
#> Number of variables (p) : 10
#> Number of lambda pairs  : 1
#> 
#> Weight matrix (W):
#> 9 x 9 sparse Matrix of class "dsCMatrix"
#>                        
#>  [1,] . 1 . 1 . . . . .
#>  [2,] 1 . 1 . 1 . . . .
#>  [3,] . 1 . . . 1 . . .
#>  [4,] 1 . . . 1 . 1 . .
#>  [5,] . 1 . 1 . 1 . 1 .
#>  [6,] . . 1 . 1 . . . 1
#>  [7,] . . . 1 . . . 1 .
#>  [8,] . . . . 1 . 1 . 1
#>  [9,] . . . . . 1 . 1 .
#> 
#>   id lambda1 lambda2      gamma1       gamma2 converged       value
#> 6  6       2     1.5 0.004938272 0.0009259259      TRUE 0.009319307
#>   n_iterations      aic      bic     ebic edges_median edges_iqr
#> 6           26 4404.656 4651.844 5407.092            8         1