Open brandmaier opened 3 years 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.
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.
semtree does not detect that definition variables are part of the model and uses them as splitters.