Question on a DAG graph

I can't even get a simple DAG graph working.
If anyone could even post up a link to one - I'd appreciate it.

# Install the packages dagitty and ggdag
# install.packages("dagitty")

dag01 <- dagitty("dag{Pollution <- Growth -> Employment}")
coordinates(dag01) <- list(
  x = c(Pollution = 1, Growth = 2, Employment = 3),
  y = c(Pollution = 2, Growth = 1, Employment = 2))

There are some examples here:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.