pathanalysis: Path Analysis, Simple and Under Collinearity

Description Usage Arguments Value Side Effects Author(s) References Examples

View source: R/pathanalysis.R

Description

Function to perform the simple path analysis and the path analysis under collinearity (sometimes called ridge path analysis). It computes the direct (diagonal) and indirect (off-diagonal) effects of each explanatory variable over a response one.

Usage

1
pathanalysis(corMatrix, resp.col, collinearity = FALSE)

Arguments

corMatrix

a correlation matrix.

resp.col

an integer value indicating the column in corMatrix that corresponds to the response variable.

collinearity

logical; if TRUE, an external interactive display is used to pass a value, say k, at which to evaluate the system: (X'X + Ik)B = X'Y, being X'X the correlation matrix between explanatory variables, X'Y the correlation vector between all explanatory variables and the response variable, B is the vector of path coefficients and k is a value between 0 and 1; default is FALSE, i.e., k = 0.

Value

A list of

coef

a matrix containing the direct (diagonal) and indirect (off-diagonal) effects of each variable.

Rsq

the coefficient of determination.

ResidualEffect

the residual effect.

VIF

a vector containing the variance inflation factors.

CN

the condition number.

Side Effects

If collinearity = TRUE, an interactive graphic is displayed for dealing with collinearity.

Author(s)

Anderson Rodrigo da Silva <anderson.agro@hotmail.com>

References

Carvalho, S.P. (1995) Metodos alternativos de estimacao de coeficientes de trilha e indices de selecao, sob multicolinearidade. Ph.D. Thesis, Federal University of Vicosa (UFV), Vicosa, MG, Brazil.

Examples

1
2
3
4
data(peppercorr)
pathanalysis(peppercorr, 6, collinearity = FALSE)

# End (not run)

biotools documentation built on Aug. 7, 2021, 9:06 a.m.