Plot for Trimmed Cross-Validation

Share:

Description

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

Usage

1
2
3
4
## S3 method for class 'h.tcv'
plot(x, seq.bws=NULL, ...)
## S3 method for class 'h.tcv'
lines(x,seq.bws=NULL, ...)

Arguments

x

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

seq.bws

the sequence of bandwidths in which to compute the trimmed 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 trimmed 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.

tcv

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

Author(s)

Arsalane Chouaib Guidoum acguidoum@usthb.dz

See Also

h.tcv.

Examples

1
2
3
par(mfrow=c(2,1))
plot(h.tcv(trimodal,deriv.order=0),main="")
plot(h.tcv(trimodal,deriv.order=1),seq.bws=seq(0.1,0.5,length.out=50),main="")