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
check_vals<-sparsebnUtils::check_list_class(ivn, c("NULL", "numeric")) # check to make sure list components are either numeric (ivn vals) or NULL (obs sample)
87
+
check_names<- sapply(ivn, function(x) is.null(names(x))) # return TRUE if component has no names attribute (i.e. it is NULL)
88
+
89
+
if(!check_vals|| all(check_names)){
90
+
err_msg<- paste0("ivn.rand set to FALSE with invalid input for ivn: ",
91
+
"If ivn.rand = FALSE, you must pass explicit values ",
92
+
"for each intervention used in your experiments. ",
93
+
"Please check that the ivn argument is a list whose ",
94
+
"arguments are named numeric vectors whose names ",
95
+
"correspond to the node under intervention or NULL ",
0 commit comments