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")
library("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))
plot(dag01)

There are some examples here: http://dagitty.net/primer/

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.