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

definition variables are predictors #33

Open brandmaier opened 3 years ago

brandmaier commented 3 years ago

semtree does not detect that definition variables are part of the model and uses them as splitters.

manuelarnold commented 1 year ago

Is this fixed? There are no issues if the predictor argument in the semtree function is used. If not: we could either check if the OpenMx model contains definition variables and, if so, give an error that definition variables require the use of the predictor argument or make the predictor argument mandatory in the first place. I prefer the latter option.

brandmaier commented 1 year ago

There is a new heuristic to extract def variables from OpenMx models: https://github.com/brandmaier/semtree/commit/985c95fb24c527f6d7f693fc158031278985824e This needs to be integrated in semtree() and semforest() calls.