lower: Lower and Upper Limits from a "datacggm" Object

View source: R/datacggm_tools.R

lower + upperR Documentation

Lower and Upper Limits from a “datacggm” Object

Description

Functions ‘lower’ and ‘upper’ retrieve the lower and upper censoring values from an object of class “datacggm”.

Usage

lower(x)
upper(x)

Arguments

x

an object of class ‘datacggm’.

Details

For an R object x of class ‘datacggm’, lower (upper) retrieves the lower (upper) censoring values of the response variables.

Author(s)

Luigi Augugliaro (luigi.augugliaro@unipa.it)

See Also

datacggm

Examples

set.seed(123)
n <- 100L
p <- 3L
rho <- 0.3
Sigma <- outer(1L:p, 1L:p, function(i, j) rho^abs(i - j))

Z <- rcggm(n = n, Sigma = Sigma, probr = 0.05)
lower(Z)
upper(Z)

Z <- rcggm(n = n, Sigma = Sigma, probl = 0.05)
lower(Z)
upper(Z)

Z <- rcggm(n = n, Sigma = Sigma, probl = 0.05, probr = 0.05)
lower(Z)
upper(Z)

cglasso documentation built on Jan. 17, 2023, 5:10 p.m.