Equivalent to extract_precision.
Usage
# S3 method for class 'ssjgl'
coef(object, v0_index = NULL, ...)Examples
sim <- simulate_ssjgl_data(K = 2, p = 10, n = 50, seed = 1)
fit <- ssjgl(sim$data_list, penalty = "fused",
lambda0 = 1, lambda1 = 0.5, lambda2 = 0.5,
v0s = 0.01, maxitr.em = 10, impute = FALSE)
theta <- coef(fit)
str(theta) # list of K precision matrices
#> List of 2
#> $ : num [1:10, 1:10] 1.07 0.25 0.487 0 0 ...
#> ..- attr(*, "dimnames")=List of 2
#> .. ..$ : chr [1:10] "V1" "V2" "V3" "V4" ...
#> .. ..$ : chr [1:10] "V1" "V2" "V3" "V4" ...
#> $ : num [1:10, 1:10] 0.967 0.25 0.23 0 0 ...
#> ..- attr(*, "dimnames")=List of 2
#> .. ..$ : chr [1:10] "V1" "V2" "V3" "V4" ...
#> .. ..$ : chr [1:10] "V1" "V2" "V3" "V4" ...