plot.h.bcv {kedd}R Documentation

Plot for Biased Cross-Validation

Description

The plot.h.bcv function loops through calls to the h.bcv function. Plot for biased cross-validation function for 1-dimensional data.

Usage

## S3 method for class 'h.bcv'
plot(x, seq.bws=NULL, ...)
## S3 method for class 'h.bcv'
lines(x,seq.bws=NULL, ...)

Arguments

x

object of class h.bcv (output from h.bcv).

seq.bws

the sequence of bandwidths in which to compute the biased cross-validation function. By default, the procedure defines a sequence of 50 points, from 0.15*hos to 2*hos (Over-smoothing).

...

other graphics parameters, see par in package "graphics".

Value

Plot of 1-d biased cross-validation function are sent to graphics window.

kernel

name of kernel to use.

deriv.order

the derivative order to use.

seq.bws

the sequence of bandwidths.

bcv

the values of the biased cross-validation function in the bandwidths grid.

Author(s)

Arsalane Chouaib Guidoum acguidoum@usthb.dz

See Also

h.bcv.

Examples

## EXAMPLE 1:

plot(h.bcv(trimodal, whichbcv = 1, deriv.order = 0),main="",sub="")
lines(h.bcv(trimodal, whichbcv = 2, deriv.order = 0),col="red")
legend("topright", c("BCV1","BCV2"),lty=1,col=c("black","red"),inset = .015)

## EXAMPLE 2:

plot(h.bcv(trimodal, whichbcv = 1, deriv.order = 1),main="",sub="")
lines(h.bcv(trimodal, whichbcv = 2, deriv.order = 1),col="red")
legend("topright", c("BCV1","BCV2"),lty=1,col=c("black","red"),inset = .015)

[Package kedd version 1.0.4 Index]