find_lammax: Compute the max value of 'lambda'

View source: R/ZILGM_funcs.R

find_lammaxR Documentation

Compute the max value of lambda

Description

Compute the max value of lambda from Karush-Kuhn-Tucker condition

Usage

find_lammax(X)

Arguments

X

A n x p data matrix.

Value

a numeric value

References

Choi, H., J. Gim, S. Won, Y. J. Kim, S. Kwon, and C. Park, 2017: Network analysis for count data with excess zeros. BMC genetics, 18, no. 1, 1-10.
Park, B., H. Choi, C. Park, 2021: Negative binomial graphical model with excess zeros.

Examples

require(ZILGM)
set.seed(1)
n = 100; p = 10; prob = 2 / p;
A = generate_network(p, prob, type = "random")
simul_dat = zilgm_sim(A = A, n = n, p = p, zlvs = 0.1, 
					  family = "negbin", signal = 1.5, theta = 0.5, noise = 0.0)
find_lammax(simul_dat$X)

bbeomjin/ZILGM documentation built on Aug. 5, 2023, 5:52 a.m.