donaldRwilliams / BGGM

Bayesian Gaussian Graphical Models
https://donaldrwilliams.github.io/BGGM/
GNU General Public License v2.0
54 stars 14 forks source link

Error when trying to run hypothesis-testing analysis #53

Closed michellehunsche closed 4 years ago

michellehunsche commented 4 years ago

I was trying to run a line of code to test whether a variable is most strongly related to all other nodes (ie most central) in a network of 7 variables. Here is an example of what the code looks like:

hyp1_SRS <- c("ToM--SRS > CBCL--SRS; ToM--SRS < CBCL--SRS; ToM--SRS = CBCL--SRS")

confirm_hyp1_SRS <- bggm_missing(imp_socanxnet,hyp1_SRS,iter = 50000,type="mixed", mixed_type=c(0,0,0,0,0,0))

And I'm getting this error:

Error in bggm_missing(imp_socanxnet, hyp1_SRS, iter = 50000, type = "mixed", : object 'fits' not found

I'm relatively new to R and network analysis and not sure what could be the cause of this error. Any advice is much appreciated!

donaldRwilliams commented 4 years ago

Hi:

bggm_missing does not currently work for testing hypotheses like that. However, you can use the function confirm. The downside is that the missing data will be removed for now.

michellehunsche commented 4 years ago

That's helpful, thank you!