plot.margint {rmargint} | R Documentation |
Diagnostic plots for objects of class margint
Description
Plot method for class margint
.
Usage
## S3 method for class 'margint'
plot(x, derivative = FALSE, which = 1:np, ask = FALSE, ...)
Arguments
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. |
Author(s)
Alejandra Mercedes Martinez ale_m_martinez@hotmail.com
Examples
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(y ~ X, windows=bandw, type='alpha', degree=1, Qmeasure=Qmeasure)
plot(fit.rob, which=1)
[Package rmargint version 2.0.3 Index]