[R] [sem package] path.diagram() ignores the edge.label argument ..?

John Fox jfox at mcmaster.ca
Mon Mar 9 15:04:39 CET 2009


Dear Martin,

It helps if you spell the name of the argument correctly,
edge.labels="values". BTW, this will give you the unstandardized, not
standardized, coefficients.

John


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On
> Behalf Of Martin Batholdy
> Sent: March-09-09 8:35 AM
> To: r-help at r-project.org
> Subject: [R] [sem package] path.diagram() ignores the edge.label argument
..?
> 
> 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 at 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.




More information about the R-help mailing list