Open laufran opened 3 months ago
The return_fstats
option makes qpgraph()
significantly slower, so it wouldn't be a good idea for find_graphs()
to apply this to all graphs (most graphs that are evaluated are not returned). To get the worst residual for each graph in the output of find_graphs()
, you could run the following:
res = find_graphs(f2_blocks)
res %>% rowwise %>%
mutate(wr = qpgraph(f2_blocks, graph, return_fstats = T)$f4 %>%
slice_max(abs(z), with_ties = F) %>% pull(z)) %>%
ungroup
Hi there,
I'm interested in comparing worst residuals between various different graph models, from both
qpgraph
andfind_graphs
. I can get the worst residual fromqpgraph
like so:where
net_qpgraph$worst_residual
has my worst residual.But when I try to do the equivalent with
find_graphs
, passing thereturn_fstats = TRUE
argument, I don't get the worst-residual:I just get a dataframe like so:
So is
return_fstats
compatible withfind_graphs
? Is it possible to get the worst residual for each graph estimated fromfind_graphs
?Thanks, Lauren