Closed GustavoGarciaPereira closed 8 months ago
Hi, I appreciate the effort, but there is already a function in the dagitty Js library that converts to lavaan syntax:
console.log( GraphSerializer.toLavaan( Model.dag ) )
Ok, sorry for opening the PR for nothing. Thank you for responding, and I will continue watching the project so I can contribute in the future
motivation for the contribution: I was having to manually dictate the DAG code to convert to lavaan, so I decided to create a new session that provides me with the direct code I made for my own use. Then I decided to send it to someone who might find it useful.
two test cases:
dag:
lavaan:
dag:
lavaan: