Closed behrman closed 2 years ago
Thanks for letting me know! I hope it's OK that I didn't use your code, since the underlying issue was in the .kins function, so I fixed that instead. I added your example as a further unit tests and it's working as expected now. Thank you for your contribution!
Great. Thanks for the quick fix!
Below is some code using dagitty version 0.3-1 and the graph from this example code.
Created on 2022-03-04 by the reprex package (v2.0.1)
The warning and error come from
dagitty:::.checkName()
. The warning is because Z_1 has more than on child. The error is because Y has no children.The following code fixes these problems.
Created on 2022-03-04 by the reprex package (v2.0.1)