Learn R Programming

kedd (version 1.0.4)

plot.h.mcv: Plot for Modified Cross-Validation

Description

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

Usage

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

Value

Plot of 1-d modified 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.

mcv

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

Arguments

x

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

seq.bws

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

Author

Arsalane Chouaib Guidoum acguidoum@usthb.dz

See Also

h.mcv.

Examples

Run this code
oldpar <- par(no.readonly = TRUE)
par(mfrow=c(2,1))
plot(h.mcv(trimodal,deriv.order=0),main="")
plot(h.mcv(trimodal,deriv.order=1),main="")
par(oldpar)

Run the code above in your browser using DataLab