
pcc
computes the Partial Correlation Coefficients (PCC),
Semi-Partial Correlation Coefficients (SPCC), Partial Rank Correlation
Coefficients (PRCC) or Semi-Partial Rank Correlation Coefficients (SPRCC),
which are sensitivity indices based on linear (resp. monotonic)
assumptions, in the case of (linearly) correlated factors.
pcc(X, y, rank = FALSE, semi = FALSE, logistic = FALSE, nboot = 0, conf = 0.95)
# S3 method for pcc
print(x, …)
# S3 method for pcc
plot(x, ylim = c(-1,1), …)
# S3 method for pcc
ggplot(x, ylim = c(-1,1), …)
a data frame (or object coercible by as.data.frame
)
containing the design of experiments (model input variables).
a vector containing the responses corresponding to the design of experiments (model output variables).
logical. If TRUE
, the analysis is done on the
ranks.
logical. If TRUE
, semi-PCC are computed.
logical. If TRUE
, the analysis is done via a
logistic regression (binomial GLM).
the number of bootstrap replicates.
the confidence level of the bootstrap confidence intervals.
the object returned by pcc
.
the y-coordinate limits of the plot.
arguments to be passed to methods, such as graphical
parameters (see par
).
pcc
returns a list of class "pcc"
, containing the following
components:
the matched call.
a data frame containing the estimations of the PCC
indices, bias and confidence intervals (if rank = TRUE
and semi = FALSE
).
a data frame containing the estimations of the PRCC
indices, bias and confidence intervals (if rank = TRUE
and semi = FALSE
).
a data frame containing the estimations of the PCC
indices, bias and confidence intervals (if rank = TRUE
and semi = TRUE
).
a data frame containing the estimations of the PRCC
indices, bias and confidence intervals (if rank = TRUE
and semi = TRUE
).
Logistic regression model (logistic = TRUE
) and rank-based indices
(rank = TRUE
) are incompatible.
A. Saltelli, K. Chan and E. M. Scott eds, 2000, Sensitivity Analysis, Wiley.
J.W. Johnson and J.M. LeBreton, History and use of relative importance indices in organizational research, Organizational Research Methods, 7:238-257, 2004.
# NOT RUN {
# a 100-sample with X1 ~ U(0.5, 1.5)
# X2 ~ U(1.5, 4.5)
# X3 ~ U(4.5, 13.5)
library(boot)
n <- 100
X <- data.frame(X1 = runif(n, 0.5, 1.5),
X2 = runif(n, 1.5, 4.5),
X3 = runif(n, 4.5, 13.5))
# linear model : Y = X1^2 + X2 + X3
y <- with(X, X1^2 + X2 + X3)
# sensitivity analysis
x <- pcc(X, y, nboot = 100)
print(x)
plot(x)
library(ggplot2)
ggplot(x)
x <- pcc(X, y, semi = TRUE, nboot = 100)
print(x)
plot(x)
# }
Run the code above in your browser using DataLab