summary.datacggm {cglasso} | R Documentation |
cggmdata
’‘summary.datacggm
’ function is used to produce summaries of an object of class ‘datacggm
’.
## S3 method for class 'datacggm' summary(object, ..., digits = max(3L, getOption("digits") - 3L))
object |
an object of class ‘ |
digits |
integer used for number formatting with ‘ |
... |
further arguments passed to ‘ |
The method function ‘summary.datacggm
’ extends the results given by ‘summary.matrix()
’ taking into account the censoring values. For each variable, the mean and the quartiles are computing using only the observed values; the lower and upper censoring values (denoted by ‘Lower
’ and ‘Upper
’) are also reported. The number of observed and censured values are computed and showed in the second part of the output (see example below).
‘summary.dataccgm
’ returns a matrix with class ‘table
’, obtained by computing the summary measures to each variable and collating the results.
Luigi Augugliaro (luigi.augugliaro@unipa.it)
Augugliaro, L., Abbruzzo, A. and Vinciotti, V. (2018). l1-Penalized gaussian graphical model. Biostatistics (to appear).
set.seed(123) library("cglasso") n <- 1000L p <- 3L mu <- rep(1L, p) rho <- 0.3 Sigma <- outer(1:p, 1:p, function(i, j) rho^abs(i - j)) X <- rdatacggm(n = n, mu = mu, Sigma = Sigma, probr = 0.05, probl = 0.05) summary(X)