Skip to content

Commit 8f96423

Browse files
committed
Deploying to gh-pages from @ 7d05592 🚀
1 parent 646e6e6 commit 8f96423

16 files changed

Lines changed: 273 additions & 30 deletions

llms.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ of the American Statistical Association* 101 (476): 1418–29.
151151
Function Computation
152152
- [`performance()`](https://shiying-xiao.com/grasps/reference/performance.md)
153153
: Performance Measures for Precision Matrix Estimation
154+
- [`plot(`*`<blkmat>`*`)`](https://shiying-xiao.com/grasps/reference/plot.blkmat.md)
155+
: Plot Function for Block-Structured Precision Matrices (Visualize a
156+
Matrix with Group Boundaries)
154157
- [`sparsify_block_banded()`](https://shiying-xiao.com/grasps/reference/sparsify_block_banded.md)
155158
: Groupwise Block-Banded Sparsifier
156159

pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pkgdown: 2.2.0
33
pkgdown_sha: ~
44
articles:
55
pen_est: pen_est.html
6-
last_built: 2025-11-23T00:06Z
6+
last_built: 2025-11-23T02:51Z
77
urls:
88
reference: https://shiying-xiao.com/grasps/reference
99
article: https://shiying-xiao.com/grasps/articles

reference/gen_prec_sbm-2.png

51.2 KB
Loading

reference/gen_prec_sbm.html

Lines changed: 25 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reference/gen_prec_sbm.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ gen_prec_sbm(
137137

138138
## Value
139139

140-
An object with S3 class "gen_prec_sbm" containing the following
140+
An object with S3 class `"gen_prec_sbm"` containing the following
141141
components:
142142

143143
- Omega:
@@ -205,12 +205,27 @@ library(grasps)
205205
set.seed(1234)
206206

207207
## block-structured precision matrix based on SBM
208-
sim <- gen_prec_sbm(d = 100, K = 5,
209-
within.prob = 0.5, between.prob = 0.05,
210-
weight.dists = list("gamma", "unif"),
211-
weight.paras = list(c(shape = 20, scale = 5), c(min = 0, max = 1)),
212-
cond.target = 100)
213-
214-
## visualization
215-
plot(sim)
208+
#### case 1: base R distribution
209+
sim1 <- gen_prec_sbm(d = 100, K = 5,
210+
within.prob = 0.5, between.prob = 0.05,
211+
weight.dists = list("gamma", "unif"),
212+
weight.paras = list(c(shape = 20, scale = 5),
213+
c(min = 0, max = 1)),
214+
cond.target = 100)
215+
#### visualization
216+
plot(sim1)
217+
218+
219+
#### case 2: user-defined sampler
220+
my_gamma <- function(n) {
221+
rgamma(n, shape = 10, scale = 5)
222+
}
223+
sim2 <- gen_prec_sbm(d = 100, K = 5,
224+
within.prob = 0.5, between.prob = 0.05,
225+
weight.dists = list(my_gamma, "unif"),
226+
weight.paras = list(NULL,
227+
c(min = 0, max = 1)),
228+
cond.target = 100)
229+
#### visualization
230+
plot(sim2)
216231
```

reference/grasps.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reference/grasps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ grasps(
227227

228228
## Value
229229

230-
An object with S3 class "grasps" containing the following components:
230+
An object with S3 class `"grasps"` containing the following components:
231231

232232
- hatOmega:
233233

reference/index.html

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reference/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@
1212
Function Computation
1313
- [`performance()`](https://shiying-xiao.com/grasps/reference/performance.md)
1414
: Performance Measures for Precision Matrix Estimation
15+
- [`plot(`*`<blkmat>`*`)`](https://shiying-xiao.com/grasps/reference/plot.blkmat.md)
16+
: Plot Function for Block-Structured Precision Matrices (Visualize a
17+
Matrix with Group Boundaries)
1518
- [`sparsify_block_banded()`](https://shiying-xiao.com/grasps/reference/sparsify_block_banded.md)
1619
: Groupwise Block-Banded Sparsifier

reference/plot.blkmat-1.png

51.8 KB
Loading

0 commit comments

Comments
 (0)