Path Diagram
Create a directed acyclic diagram to represent causal effects of risk factors on the disease of study.
pathdiagram(pathdata, disease, R2, range)
R object that is dataset consisting of correlation matrix of risk factors and a numeric vector of direct path coefficients.
a string that specifies outcome name or disease name. If disease name is long or has multiple words, then we suggest an abbreviated name, for example, coronary artery disease may be shortened as \code{CAD}.
a numeric parameter, is R-square obtained from path analysis.
range of specified columns for correlation matrix. For example, \code{range = c(2:4)} means the correlation coefficient begins with column 2 and end at column 4.
The \emph{pathdata} contains correlation matrix of risk factors and a numeric vector of direct path coefficients obtained from path analysis of beta data of \code{SNP}s on risk factors and disease. Columns must have risk factor names and path.
NULL. pathdiagram will create one-level path diagram labeled with colors.

Yuan-De Tan

    \code{\link{pathdiagram2}}, \code{\link[diagram]{plotmat}}, \code{\link[diagram]{plotweb}}


mypath[1,]<-c(1.000000,-0.066678, 0.420036,0.764638)

#        ldl       hdl        tg      path
#1  1.000000 -0.066678  0.420036  0.764638
#2 -0.066678  1.000000 -0.559718  0.496831
#3  0.420036 -0.559718  1.000000  0.414346


\keyword{path }