brandmaier / semtree

Recursive Partitioning for Structural Equation Models
https://brandmaier.github.io/semtree/
GNU General Public License v3.0
13 stars 11 forks source link

Correct name of test statistics #52

Open manuelarnold opened 1 year ago

manuelarnold commented 1 year ago

With the introduction of score-based tests, more split criteria are used in semtree than the likelihood ratio test statistic. Currently, all test statistics are incorrectly labeled as LR in outputs and plots. I suggest the following changes: We split tree$result$LL.max into tree$result$test.type (character value; e.g., LR or maxLM and so on) and tree$result$test.value (numeric value). I could then display the information stored in tree$result$test.type in the plot function. Could we change that by copying and pasting, or will we break something?

brandmaier commented 1 year ago

Yes, very good!