You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, Dr. Swanson
Thank you for making the 'modnets' package, it's a very useful network analysis tool. However, I've encountered some occasional issues with the 'condPlot' and 'intsPlot' functions.
I'm trying to assess the impact of family support (FS) on the relationship between depression (CES-D) and anxiety (SAS) among patients. My code looks like this:
vars_patient2 <- varSelect(data_patient2,
m = "FS",
criterion = "bic",
method = "glinternet")
mnet_patient2 <- fitNetwork(data_patient2,
moderators = "FS",
type = vars_patient2,
rule = "OR")
condPlot(mnet_patient2, to = "CESD19", from = "SAS2")
In the interaction matrix, the coefficient of SAS2*FS on CESD19 is not zero. However, I'm encountering this error:
Error in `[.data.frame`(mods[[1]]$model, modname): undefined columns selected
The bug in question appears inconsistently, sometimes it occurs, and sometimes it doesn't. In the code I provided, when I remove the variable selection step, the bug disappears. I'm truly perplexed by this. I would greatly appreciate it if you could help me resolve this issue.
Thank you
The text was updated successfully, but these errors were encountered:
Hello, Dr. Swanson
Thank you for making the 'modnets' package, it's a very useful network analysis tool. However, I've encountered some occasional issues with the 'condPlot' and 'intsPlot' functions.
I'm trying to assess the impact of family support (FS) on the relationship between depression (CES-D) and anxiety (SAS) among patients. My code looks like this:
In the interaction matrix, the coefficient of SAS2*FS on CESD19 is not zero. However, I'm encountering this error:
I also run traceback, which shows this:
The bug in question appears inconsistently, sometimes it occurs, and sometimes it doesn't. In the code I provided, when I remove the variable selection step, the bug disappears. I'm truly perplexed by this. I would greatly appreciate it if you could help me resolve this issue.
Thank you
The text was updated successfully, but these errors were encountered: