Closed cjvanlissa closed 2 years ago
The current implementation of the score statistic ignores min.bucket
but we are working on this. As an intermediate (not optimal) solution, you could prune the trees from all leafs that have a too small sample size.
I just uploaded a fix that wraps the likelihood evaluation in lavaan models and catches errors in the likelihood evaluation (https://github.com/brandmaier/semtree/commit/78cf150c23424a5ae94c659d639ea51660fe51ec). However, running variable importance with these warnings likely distorts the results. So, I would rather try to prune back the tree a little.
The error below suggests that error catching is necessary, as sometimes the number of cases in terminal nodes is too low to compute the covariance matrix. This even happens though