-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
85 lines (55 loc) · 2.37 KB
/
Copy pathREADME.Rmd
File metadata and controls
85 lines (55 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
output:
github_document:
pandoc_args: [ "--wrap=preserve", "--columns=80" ]
bibliography: inst/REFERENCES.bib
link-citations: yes
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# spice <img src="man/figures/logo.png" align="right" alt="" width="150"/>
## Sparse Precision (Inverse Covariance) Estimation
[](https://github.com/Carol-seven/spice/commits/master)
[](https://github.com/Carol-seven/spice/actions/workflows/R-CMD-check.yaml)
[](https://github.com/Carol-seven/spice/blob/master/LICENSE.md)
The goal of **spice** is to provide classical statistical methods for estimating
sparse precision (inverse covariance) matrix for functional connectivity
analysis in brain networks, making these methods accessible and easy to use for
researchers and practitioners in neuroimaging.
## Methods
| Method | Reference |
|:--------|:----------|
| Graphical lasso (`method = "glasso"`) | @friedman2008sparse |
| Graphical ridge (`method = "ridge"`) | @vanwieringen2016ridge |
| Graphical elastic net (`method = "elnet"`) | @zou2005regularization |
| CLIME (`method = "clime"`) | @cai2011aconstrained |
| TIGER (`method = "tiger"`) | @liu2017tiger |
| Graphical adaptive lasso (`method = "adapt"`) | @zou2006adaptive; @fan2009network |
| Arctangent type penalty (`method = "atan"`) | @wang2016variable |
| Exponential type penalty (`method = "exp"`) | @wang2018variable |
| MCP (`method = "mcp"`) | @zhang2010nearly |
| SCAD (`method = "scad"`) | @fan2001variable; @fan2009network |
## Installation
You can install the development version of **spice** from
[GitHub](https://github.com/Carol-seven/spice) with:
``` r
# install.packages("pak")
pak::pkg_install("Carol-seven/spice")
```
## Example
```
library(spice)
set.seed(123)
X <- matrix(rnorm(200), 10, 20)
## Statistical methods for estimating the precision matrix,
## including the estimation and selection process
spice(X, method = "glasso", pkg = "glasso", crit = "CV", fold = 5)
```
## Reference {-}