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.
pathanalysis(corMatrix, resp.col, collinearity = FALSE)
A list of
a matrix containing the direct (diagonal) and indirect (off-diagonal) effects of each variable.
the coefficient of determination.
the residual effect.
a vector containing the variance inflation factors.
the condition number.
a correlation matrix.
an integer value indicating the column in corMatrix
that corresponds to
the response variable.
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.
If collinearity = TRUE
, an interactive graphic is displayed for dealing with collinearity.
Anderson Rodrigo da Silva <anderson.agro@hotmail.com>
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.
data(peppercorr)
pathanalysis(peppercorr, 6, collinearity = FALSE)
# End (not run)
Run the code above in your browser using DataLab