Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robust Estimation? #7

Open
emstruong opened this issue Apr 29, 2024 · 0 comments
Open

Robust Estimation? #7

emstruong opened this issue Apr 29, 2024 · 0 comments

Comments

@emstruong
Copy link

Hello,

I've been trying to run networktree on the attached data (which I understand to be a random sample of the publicly available BIG 5 data from IPIP), I'm guessing that the reason why networktree fails to run is because there are some sub-groups that have too small a sample relative to the number of nodes in the network.

Would there be a way to perhaps persist on computing the network on the sub-group either by using some variant of GLASSO or simply throwing up a warning message for the sub-groups on which a correlational network could not be estimated?

library(data.table)
library(networktree)
d_efa <- data.table::fread(input = here::here("data/EFA_BIG5.csv"))
col_idx <- colnames(d_efa)[-1:-6]
networktree::networktree(
  nodevars = d_efa[, col_idx, with = FALSE],
  splitvars = d_efa[, c("race", "age", "engnat", "gender", "hand", "country")],
  method = "mob",
  model = "correlation",
  transform = "cor"
)

#> Error in fit(y = y, x = x, start = start, weights = weights, offset = offset, : mvnfit: n < k*(k-1)/2, correlation matrix is not identified.

Created on 2024-04-29 with reprex v2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant