Description Usage Arguments Author(s) References See Also Examples
Plots directions and other information from MSIR estimation.
1 2 3 4 |
x |
a |
which |
a vector of value(s) giving the directions for which the plot should be drawn. |
type |
the type of plot to be drawn. |
span |
the span of smoother (only for |
std |
if |
ylab |
a character string for the y-axis label. |
xlab |
a character string for the x-axis label. |
restore.par |
if |
... |
additional arguments. |
Luca Scrucca luca.scrucca@unipg.it
Scrucca, L. (2011) Model-based SIR for dimension reduction. Computational Statistics & Data Analysis, 55(11), 3010-3026.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
# 2-dimensional response curve
n <- 300
p <- 5
b1 <- c(1, 1, 1, rep(0, p-3))
b2 <- c(1,-1,-1, rep(0, p-3))
b <- cbind(b1,b2)
x <- matrix(rnorm(n*p), nrow = n, ncol = p)
y <- x %*% b1 + (x %*% b1)^3 + 4*(x %*% b2)^2 + rnorm(n)
MSIR <- msir(x, y)
summary(MSIR)
plot(MSIR)
plot(MSIR, which = 1:2)
plot(MSIR, type = "2Dplot", which = 1, span = 0.7)
plot(MSIR, type = "2Dplot", which = 2, span = 0.7)
plot(MSIR, type = "spinplot")
plot(MSIR, type = "evalues")
plot(MSIR, type = "coefficients")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.