Comments (10)
I received the same error: " in data.frame(name = name, type = "expectedInfluence", node1 = x[["labels"]], :
arguments imply differing number of rows: 1, 18, 0") when running a case-dropping bootstrap. The nonparametric bootstrap ran fine. I was also using a custom function (code for function, network, and bootstraps below)
lasso_function <- function(data){EBICglasso(cor(data,use="complete.obs", method="spearman"), n = nrow(data))}
T1Data_S_network<- estimateNetwork(T1Data_S,default="none",fun=lasso_function)
b1 <- bootnet(T1Data_S_network, nBoots = 1000,statistics=c("edge","strength","expectedInfluence"), labels = labels_S, type = "nonparametric")
b2 <- bootnet(T1Data_S_network, nBoots = 1000, statistics=c("edge","strength","expectedInfluence"), labels = labels_S, type = "case")
Any help would be appreciated, thank you!
-Dan
from bootnet.
I can run nonparametric as well. It seems unique to the combination of case + expected influence. Hopefully this can get elucidated for us.
from bootnet.
Hi all,
I noticed I tend to receive this error message when I bootstrap a network that often returns empty. Did you come across a similar pattern?
from bootnet.
I didn't personally get any warnings or errors to that effect when using estimatenetwork or during the bootstrapping procedure.
from bootnet.
Actually, sorry about that, wrong model. Yes, the bootstrapping procedure is giving me warnings about empty networks being selected as the best fitting models (this came up eight times). This warning only comes up in the case dropping bootstrap.
from bootnet.
Hi all,
This should now be resolved in the devel version on Gtihub. Could anyone check? Then I'll submit it to CRAN.
library("devtools")
install_github("sachaepskamp/bootnet")
Best, Sacha
from bootnet.
Thanks, Sacha. I'm still getting the same error. Not sure if this is useful information but I got this message while updating.
Error: Failed to install 'bootnet' from GitHub:
(converted from warning) package ‘foreach’ is in use and will not be installed.
from bootnet.
Sacha,
It worked for me!
Notably, when trying to download the Github version of bootnet, I also received many errors similar to what Dan is mentioning. For example: Error: Failed to install 'bootnet' from GitHub:
(converted from warning) cannot remove prior installation of package ‘backports’
How I fixed this was by installing each package it was trying to remove
e.g. install.packages("backports")
Once I did this for digest, Rccp, and backports, the bootnet download went through, and I could perform the case-dropping bootstrap of expected influence successfully.
Thank you very much! Please let me know if I can help further.
Brooklynn
from bootnet.
That worked for me too! Cleared the workspace and installed the problematic package by itself. However, I'm getting a similar error (potentially due to a different modeling issue) for a later bootstrapping procedure: This time it having issues with the strength metric. Also, it comes up with both the nonparametric and case-dropping bootstraps. It differs from the last network in that it is dense, so I'm not sure if this is driving the issue or not.
Network with lowest lambda selected as best network: assumption of sparsity might be violated.
Computing statistics...
Error in data.frame(name = name, type = "strength", node1 = x[["labels"]], :
arguments imply differing number of rows: 1, 18, 13
from bootnet.
Thanks! I will close this issue then. Perhaps you can open a new issue about the new message? Do you get it when bootstrapping or when estimating the original network?
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
- 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.