Comments (3)
While the original sample has 43 cases, the bootstrapped samples will have fewer than 43 cases leading to potentially non-positive definite correlation matrices used as input. While technically EBICglasso can still be used (you would have to overwrite this error both in qgraph and bootnet) I really do not advice you to do so. See here for more info:
from bootnet.
Hi Sacha,
thanks for your response. In this example:#126, the number of datapoints was fewer than number of nodes. In my project, number of datapoints (43) beyonds the number of nodes (37). Why would this error still happened?
from bootnet.
Even though you have more datapoints than nodes in the original data, you don't have this in the bootstrapped data as you resample cases with replacement, leading to less unique cases. See for example:
# Original data with N = 11; P = 10:
data <- matrix(rnorm(11*10),11,10)
all(eigen(cor(data))$values > 0)
# Is positive definite
# Bootstrap sample:
set.seed(42)
bootdata <- data[sample(1:nrow(data),nrow(data),TRUE),]
all(eigen(cor(bootdata))$values > 0)
# No longer positive definite
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
- Correlation matrix is not positive definite HOT 1
- Code credit HOT 1
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.