hi,

I plot path diagrams with the path.diagram() function of the sem package in combination with the graphviz application.

Now I want the graphviz code for a path-plot with the actual standardized coefficients on the arrows (not the names). I tried to add edge.labels="values" as an argument to path.diagram() but it's just ignored.


can anyone help me on that?




p.s.;


here is the actual code;







cov <- c (1.670028 ,-1.197685 ,-2.931445,-1.197685,1.765646,3.883839,-2.931445,3.883839,12.050816)


cov.matrix <- matrix(cov, 3, 3, dimnames=list(c("y1","x1","x2"), c("y1","x1","x2")))


path.model <- specify.model()
  x1 -> y1,  x1-y1
  x2 <-> x1,      x2-x1
  x2 <-> x2,      x2-x2
  x1 <-> x1,      x1-x1
  y1 <-> y1,      y1-y1
 x2 -> y1,   x2-y1

 summary(sem(path.model, cov.matrix, N = 422))

 std.coef(sem(path.model, cov.matrix, N = 422))
 standardized.residuals(sem(path.model, cov.matrix, N = 422))

path.diagram(sem(path.model, cov.matrix, N = 422), "test.dot", edge.labes="values", digits=2, ignore.double=FALSE)

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to