GithubHelp home page GithubHelp logo

Comments (10)

dpmoriarity avatar dpmoriarity commented on May 28, 2024

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.

brklynn avatar brklynn commented on May 28, 2024

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.

mayakup avatar mayakup commented on May 28, 2024

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.

dpmoriarity avatar dpmoriarity commented on May 28, 2024

I didn't personally get any warnings or errors to that effect when using estimatenetwork or during the bootstrapping procedure.

from bootnet.

dpmoriarity avatar dpmoriarity commented on May 28, 2024

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.

SachaEpskamp avatar SachaEpskamp commented on May 28, 2024

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.

dpmoriarity avatar dpmoriarity commented on May 28, 2024

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.

brklynn avatar brklynn commented on May 28, 2024

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.

dpmoriarity avatar dpmoriarity commented on May 28, 2024

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.

SachaEpskamp avatar SachaEpskamp commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.