Comments (1)
Hi Steafy,
This fully depends on what estimator you want to use. For time-series, I would always recommend using a graphical VAR routine that includes temporal effects, but then things are trickyer. If we aim to estimate a Gaussian graphical model (partial correlation matrix), then most methods require a correlation matrix as input and invert it (coupled with regularization or model selection) to get the estimated network. Inverting a correlation matrix usually only works if the matrix is positive semi-definite, and a correlation matrix by definition is not positive semi-definite if the number of variables exceeds the number of observations.
There are some methods that can handle this situation though, especially the LASSO estimators. For example, EBICglasso in theory can handle a situation with less nodes than observations. However, I definitly do not recommend doing this, as in practice the results will be highly unstable. To this end, I included checks in both the bootnet default wrapper as well as the underlying estimation function in qgraph.
If you really want to do this, then you need to disable both checks using the argument nonPositiveDefinite
for the bootnet check and the argument checkPD
for the qgraph check. Here is a reproducible example:
df <- as.data.frame(matrix(rnorm(100*90),90,100))
library("bootnet")
net <- estimateNetwork(df, default = "EBICglasso", nonPositiveDefinite = "continue", checkPD = FALSE)
plot(net)
Again, I don't recommend this. For time-series, I also recommend modeling temporal effects to handle violations of independence of cases. In this paper we already see that network analyis for N = 100 timeseries is hard with 8 nodes, so 100 nodes would be ambitious indeed.
Best,
Sacha
from bootnet.
Related Issues (20)
- How to adjust the size of labels HOT 2
- Similar question to "Plotting centrality stability showing only "strength" #88" HOT 3
- I cannot calculate the difference of "closeness". HOT 2
- Question about edge color difference between "mgm" and "estimatenetwork(bootnet)" HOT 2
- How to set alpha parameter of elastic net penalty in estimatenetwork function? HOT 2
- some question about big sample size HOT 2
- failed installing botnet HOT 2
- Cross-lagged panel networks in bootnet HOT 8
- Bootnet should plot categorical interaction edges as grey when using mgm
- Mixing different data types in GGM - preprocessing ? HOT 1
- How to display computing progress when using estimateNetwork function with mgm method? HOT 2
- correlation matrix is not positive definite HOT 1
- Can not plotting subset bootstrapped estimates when using "plot='difference' "
- Node-Dropping Bootstrap: "Lowest Lambda was selected" HOT 1
- partial correlations HOT 2
- Some issues about the cormethod of ggmmodselect & NCT HOT 2
- Error with dplyr::bind_rows() HOT 1
- Code credit HOT 1
- Correlation matrix is not positive definite HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootnet.