summary.datacggm {cglasso}R Documentation

Summarizing Objects of Class ‘cggmdata

Description

summary.datacggm’ function is used to produce summaries of an object of class ‘datacggm’.

Usage

## S3 method for class 'datacggm'
summary(object, ..., digits = max(3L, getOption("digits") - 3L))

Arguments

object

an object of class ‘datacggm’.

digits

integer used for number formatting with ‘format()’.

...

further arguments passed to ‘format()’.

Details

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).

Value

summary.dataccgm’ returns a matrix with class ‘table’, obtained by computing the summary measures to each variable and collating the results.

Author(s)

Luigi Augugliaro (luigi.augugliaro@unipa.it)

References

Augugliaro, L., Abbruzzo, A. and Vinciotti, V. (2018). l1-Penalized gaussian graphical model. Biostatistics (to appear).

See Also

datacggm and rdatacggm.

Examples

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)

[Package cglasso version 1.1.1 Index]