plot.margint {rmargint} | R Documentation |
margint
Plot method for class margint
.
## S3 method for class 'margint' plot(x, derivative = FALSE, which = 1:np, ask = FALSE, ...)
x |
an object of class |
derivative |
if TRUE, it plots the q-th derivatives. Defaults to FALSE. |
which |
vector of indices of explanatory variables for which partial residuals plots will be generated. Defaults to all available explanatory variables. |
ask |
logical value. If |
... |
additional other arguments. |
Alejandra Mercedes Martinez ale_m_martinez@hotmail.com
function.g1 <- function(x1) 24*(x1-1/2)^2-2 function.g2 <- function(x2) 2*pi*sin(pi*x2)-4 set.seed(140) n <- 150 x1 <- runif(n) x2 <- runif(n) X <- cbind(x1, x2) eps <- rnorm(n,0,sd=0.15) regresion <- function.g1(x1) + function.g2(x2) y <- regresion + eps bandw <- matrix(0.25,2,2) set.seed(8090) nQ <- 80 Qmeasure <- matrix(runif(nQ*2), nQ, 2) fit.rob <- margint.rob(Xp=X, yp=y, windows=bandw, type='alpha', degree=1, Qmeasure=Qmeasure) plot(fit.rob, which=1)