Comments (2)
The example codes in ?netSimulator work fine for me. Can you give a reproducible example?
Best, Sacha
from bootnet.
Thanks Sacha,
The code that I included in the original post reproduces the problem on my computer.
# R version 3.5.1 (2018-07-02) -- "Feather Spray"
# Platform: x86_64-apple-darwin15.6.0 (64-bit)
install.packages("bootnet")
library(bootnet)
# This is bootnet 1.1.0
netSimulator()
netSimulator(nCores = 2)
The code from ?netSimulator also gives me the same error as the prior code. Specifically, the following code gives the error
library("psych")
data(bfi)
bfiData <- bfi[,1:25]
# Estimate a network structure, with parameters refitted without LASSO regularization:
library("qgraph")
Network <- EBICglasso(cor_auto(bfiData), nrow(bfiData), refit = TRUE)
# Simulate 100 repititions in 2 cores under different sampling levels:
Sim1 <- netSimulator(Network,
default = "EBICglasso",
nCases = c(100,250,500),
nReps = 100,
nCores = 2)
However, when I remove nCores = 2, the code works fine
# Simulate 100 repititions under different sampling levels without specifying cores (1 core):
Sim2 <- netSimulator(Network,
default = "EBICglasso",
nCases = c(100,250,500),
nReps = 100)
I have now been able to try all of this code on a Windows machine and it works on this other machine using the same version of R and bootnet. So, I recognize that this might be something wrong with my machine. I tried updating my version of R, but the problem persists. I've tried updating packages and the problem persists.
I don't expect you to do individual tech support for my wayward machine, but if you have any ideas let me know. Otherwise, I'll just be patient and use the code on the machine where it works.
from bootnet.
Related Issues (20)
- differenceTest() only working for strength, but not other centrality measures. HOT 1
- opening bootnet HOT 6
- Bootstrap error: Error in eigen(corMat) : infinite or missing values in 'x' HOT 8
- Centrality Stability after estimation with mgm package HOT 2
- Potential issue bootstrapping with edge thresholds HOT 2
- Attaching `bootnet` generates a `.Random.seed` in the `.GlobalEnv` HOT 7
- Length of communities argument does not match number of nodes" error HOT 4
- Maximum numbers of errors in bootnet HOT 2
- Removing negative range in stability plot HOT 1
- Bug with CS-coefficient (?): same values are estimated for betweenness and strength HOT 3
- Plotting centrality stability showing only "strength" HOT 5
- Estimate group network bug? HOT 1
- Which bootstrapping default use with mgm? HOT 1
- edge weight bootstrap error HOT 3
- Correlation matrix is not positive definite HOT 2
- Subsetting estimate network object HOT 1
- HELP! Matrix not positive defined HOT 4
- Possible to use qgraph or weights matrix as input in bootnet? HOT 3
- Transforms corMethod = "npn" NAs into values? HOT 2
- Plotting bootstrapped edge CIs results in "Error in `dplyr::select()`" 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.