Facilitates the performance of several analyses, including simple and sequential path coefficient analysis, correlation estimate, drawing correlogram, Heatmap, and path diagram. When working with raw data, that includes one or more dependent variables along with one or more independent variables are available, the path coefficient analysis can be conducted. It allows for testing direct effects, which can be a vital indicator in path coefficient analysis. The process of preparing the dataset rule is explained in detail in the vignette file "Path.Analysis_manual.Rmd". You can find this in the folders labelled "data" and "~/inst/extdata". Also see: 1)the 'lavaan', 2)a sample of sequential path analysis in 'metan' suggested by Olivoto and LĂșcio (2020)
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
R package Path.Analysis provides a comprehensive textual and illustrative analysis on raw data or a correlation matrix to extract correlation coefficients, path direct and indirect effect along with testing direct effects. Later, it draws 3 kinds of correlation plot, diagram and a Heatmap.
'Path.Analysis' is very easy to use and provides a good plotting options in visualization method, graphic layout, color, legend, text labels, etc. It also provides p-values of direct effects to help users determine the statistical significance of the correlations and direct effects.
For examples, see its #online vignette.
This package is licensed under the MIT license, and available on CRAN: https://cran.r-project.org/package=Path.Analysis.
library(Path.Analysis)
data(dtsimp)
Path.Analysis(dtsimp, 1, rplot = FALSE, rdend = FALSE)
library(Path.Analysis)
data(dtraw)
Path.Analysis(dtraw, 1, rplot = TRUE, rdend = FALSE)
To download the release version of the package on CRAN, type the following at the R command line:
install.packages('Path.Analysis')
To download the development version of the package, type the following at the R command line:
devtools::install_github('abeyran/Path.Analysis', build_vignettes = TRUE)
To cite corrplot properly, call the R built-in command
citation('Path.Analysis') as follows:
citation('Rapth')
If you encounter a clear bug, please file a minimal reproducible example on github.