useDynLib("locfit")

importFrom(graphics, points, plot)
importFrom(stats, fitted, formula, preplot, residuals)
#import(lattice)
importFrom(lattice, contourplot, levelplot, llines, panel.xyplot,
           strip.default, wireframe, xyplot)
importFrom("graphics", "abline", "axis", "contour", "image", "legend",
           "lines", "par", "persp", "polygon", "rug", "segments",
           "text", "title")
importFrom("stats", "as.formula", "delete.response", "dnorm", "median",
           "model.extract", "model.frame", "pnorm", "predict", "terms",
           "var", "weights")
## density.lf and plot.eval are not methods.
export(aic, aicplot, ang, cp, cpar, cpplot, crit, "crit<-", dat,
       density.lf, expit, gam.lf, gam.slist, gcv, gcvplot, hatmatrix,
       kappa0, kdeb, km.mrl, lcv, lcvplot, left, lf, lfeval,
       lfgrid, lfknots, lflim, lfmarg, locfit, locfit.censor,
       locfit.matrix, locfit.quasi, locfit.raw, locfit.robust, lp,
       lscv, lscv.exact, lscvplot, none, panel.locfit,
       panel.xyplot.lf, plot.eval, plotbyfactor, rbox, regband, right,
       rv, "rv<-", scb, sjpi, smooth.lf, spence.15, spence.21, store,
       xbar)

S3method(fitted, locfit)
S3method(formula, locfit)
S3method(lines, locfit)
S3method(llines, locfit)
S3method(plot, gcvplot)
S3method(plot, lfeval)
S3method(plot, locfit)
S3method(plot, locfit.1d)
S3method(plot, locfit.2d)
S3method(plot, locfit.3d)
S3method(plot, preplot.locfit)
S3method(plot, scb)
S3method(plot, scb.1d)
S3method(plot, scb.2d)
S3method(points, locfit)
S3method(predict, locfit)
S3method(preplot, locfit)
S3method(preplot, locfit.raw)
S3method(print, gcvplot)
S3method(print, lfeval)
S3method(print, locfit)
S3method(print, preplot.locfit)
S3method(print, scb)
S3method(print, summary.locfit)
S3method(residuals, locfit)
S3method(summary, gcvplot)
S3method(summary, locfit)
S3method(summary, preplot.locfit)
S3method("[", lp)
