Learn R Programming

cglasso (version 1.1.2)

summary.datacggm: Summarizing Objects of Class ‘cggmdata

Description

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

Usage

# S3 method for 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()’.

Value

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

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

References

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

See Also

datacggm and rdatacggm.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab