networktree
Recursive partitioning (tree models) of psychometric networks
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 3 DOI reference(s) in README -
○Academic publication links
-
✓Committers with academic emails
4 of 6 committers (66.7%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.8%) to scientific vocabulary
Keywords
network-analysis
psychometrics
tree-models
Last synced: 6 months ago
·
JSON representation
Repository
Recursive partitioning (tree models) of psychometric networks
Basic Info
- Host: GitHub
- Owner: paytonjjones
- Language: R
- Default Branch: main
- Homepage: https://paytonjjones.github.io/networktree/
- Size: 36 MB
Statistics
- Stars: 13
- Watchers: 1
- Forks: 2
- Open Issues: 1
- Releases: 0
Topics
network-analysis
psychometrics
tree-models
Created over 7 years ago
· Last pushed over 3 years ago
Metadata Files
Readme
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
fig.path = "man/figures/README-"
)
require(networktree)
require(qgraph)
require(grid)
data("dass")
```
Psychometric networks provide information about the statistical relationships between observed variables. ***networktree*** is a package for partitioning psychometric networks to reveal heterogeneity.
Consider a depression network where the nodes represent different symptoms:
```{r, echo = FALSE, fig.height=4, fig.width=4}
# depression items from dass 21
nodeVars <- c("dass3_D", "dass42_D", "dass10_D", "dass13_D", "dass31_D", "dass17_D", "dass38_D")
dNames <- c("anhedonia", "initiative","lookforward","sad","unenthused","worthless","meaningless")
colnames(dass)[match(nodeVars, colnames(dass))] <- dNames
pcorDassDep <- qgraph(cor(dass[,dNames]), graph="pcor", labels=dNames, vsize=15, layout="spring", label.norm="OOOOO")
```
***networktree*** can be used to identify if this depression network is heterogeneous depending on the sample characteristics. For instance, we can test whether the network differs depending on participants' marital status.
```{r, echo = FALSE}
tree1 <- networktree(nodevars=dass[,dNames], splitvars=dass[,"married",drop=F])
plot(tree1, transform="pcor",
labels=dNames, vsize=15, layout=pcorDassDep$layout, label.norm="OOOOO",
partyargs=list(gp=gpar(fontsize=10)))
```
We can explore multiple characteristics at once, with the more important splitting characteristics being prioritized in the tree model. Continuous partitioning variables (e.g., age) can be included, and ***networktree*** will automatically search for the ideal split point(s).
```{r, echo = FALSE, fig.width=10, fig.height=6.5}
tree_complex <- networktree(nodevars=dass[,dNames], splitvars=dass[,c("age", "race"),drop=F])
plot(tree_complex,transform="pcor",
labels=dNames, vsize=15, layout=pcorDassDep$layout, label.norm="OOOOO",
partyargs=list(gp=gpar(fontsize=7)))
```
Resources:
* [Home Page](https://paytonjjones.github.io/networktree/)
* [Getting Started - Tutorial](https://paytonjjones.github.io/networktree/index.html)
* [CRAN documentation](https://cran.r-project.org/web/packages/networktree/index.html)
* [Example application](https://paytonjjones.github.io/networktree/articles/returns.html)
* [Published paper](https://rdcu.be/b9Kyw) for a more advanced look.
To cite ***networktree***, use:
Jones, P.J., Mair, P., Simon, T., & Zeileis, A. (2020). Network trees: A method for recursively partitioning covariance structures. _Psychometrika_, **85**(4), 926-945. [doi:10.1007/s11336-020-09731-4](https://doi.org/10.1007/s11336-020-09731-4)
Owner
- Name: Payton J. Jones
- Login: paytonjjones
- Kind: user
- Location: Issaquah, WA
- Company: Pluralsight
- Website: https://www.paytonjjones.com
- Repositories: 12
- Profile: https://github.com/paytonjjones
Senior Data Scientist at Pluralsight
GitHub Events
Total
Last Year
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Payton J. Jones | p****s@g****m | 54 |
| Thorsten Simon | T****n@u****t | 24 |
| Thorsten Simon | t****n@u****t | 19 |
| Payton J. Jones | p****s@g****u | 16 |
| Achim Zeileis | A****s@u****t | 7 |
| Payton J. Jones | p****s@p****m | 4 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 7
- Total pull requests: 0
- Average time to close issues: 8 months
- Average time to close pull requests: N/A
- Total issue authors: 5
- Total pull request authors: 0
- Average comments per issue: 1.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- meteosimon (3)
- parsifal9 (1)
- desphua (1)
- emstruong (1)
- lbros02 (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 317 last-month
- Total docker downloads: 41,971
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 5
- Total maintainers: 1
cran.r-project.org: networktree
Recursive Partitioning of Network Models
- Homepage: https://paytonjjones.github.io/networktree/
- Documentation: http://cran.r-project.org/web/packages/networktree/networktree.pdf
- License: GPL-2 | GPL-3
-
Latest release: 1.0.1
published about 5 years ago
Rankings
Stargazers count: 17.0%
Forks count: 21.9%
Average: 28.0%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Downloads: 35.9%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.5.0 depends
- Formula * imports
- Matrix * imports
- graphics * imports
- grid * imports
- gridBase * imports
- mvtnorm * imports
- partykit * imports
- qgraph * imports
- reshape2 * imports
- stats * imports
- utils * imports
- R.rsp * suggests
- fxregime * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests
- zoo * suggests