Description Usage Arguments Details Value Note Author(s) References See Also Examples

*path* is used to perform path analysis of multiple causal or risk variables on an outcome or disease of study.

1 | ```
path(betav,model,outcome)
``` |

`betav` |
a matrix numeric data with p rows and q columns in which the first column must be outcome and other columns are risk variables. |

`model` |
a linear model for multivariate linear regression analysis. The model must be given in |

`outcome` |
a string that is required to give outcome name or disease name. For example, |

*path* is originally planed to perform causal analysis of risk variables on disease of study based on the results of the Mendelian randomization analysis of `SNP`

s on these risk variables and disease. In the **GMRP** package, the betav is a matrix of beta coefficients of linear regression analyses of chosen `SNP`

s on the risk (or causal) variables and disease or outcome. The beta values are equivalently quantitative values, so this path function can also be used to analyze direct and indirect contributions of quantitative traits to economic traits.

Return three matrices: beta coefficients of regressions of risk variables on outcome or disease, correlation matrix and path matrix and also return director path coefficients and R-square.

betav may also be a matrix of SNP path coefficients onto risk variables and disease.

Yuan-De Tan tanyuande@gmail.com

Do, R. et al. 2013 Common variants associated with plasma triglycerides and risk for coronary artery disease. *Nat Genet* **45**: 1345-1352.

Sheehan, N.A. et al. 2008 Mendelian randomisation and causal inference in observational epidemiology. PLoS Med 5: e177.

Sheehan, N.A.,et al. 2010 Mendelian randomisation: a tool for assessing causality in observational epidemiology. *Methods Mol Biol* **713**: 153-166.

Wright, S. 1921 Correlation and causation. *J.Agricultural Research* **20**: 557-585.

Wright, S. 1934 The method of path coefficients. *Annals of Mathematical Statistics* **5** (3): 161-215.

`link[base]{lm}`

,`link[stats]{cor}`

1 2 3 4 5 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.