importFrom("grDevices", "grey")
importFrom("graphics", "abline", "axis", "box", "lines", "matlines",
             "matplot", "par", "plot", "points", "polygon", "segments")
importFrom("stats", "approx", "as.formula", "coef", "contrasts", "family",
             "fitted", "formula", "gaussian", "glm.control", "glm.fit",
             "is.empty.model", "lm.wfit", "median", "model.frame",
             "model.matrix", "model.offset", "model.response",
             "model.weights", "na.omit", "pnorm", "predict",
             "printCoefmat", "pt", "qnorm", "qt", "quantile", "resid",
             "residuals", "runif", "summary.glm", "summary.lm", "update",
             "update.formula", "vcov", "weights")
importFrom("utils", "flush.console")
importFrom("stats", "complete.cases")
importFrom("stats", "add1")

export(segmented, segmented.default, segmented.lm, segmented.glm, segmented.Arima,
	broken.line ,confint.segmented,davies.test,pscore.test,draw.history,aapc,
	intercept,lines.segmented,plot.segmented,print.segmented,
	seg.control,seg.lm.fit,seg.glm.fit,seg.lm.fit.boot,seg.glm.fit.boot,
	seg.def.fit,seg.def.fit.boot, seg.Ar.fit,seg.Ar.fit.boot,
	slope, summary.segmented,print.summary.segmented,vcov.segmented, predict.segmented, 
	points.segmented, aapc)

S3method(segmented,default)
S3method(segmented,lm)
S3method(segmented,glm)
S3method(segmented,Arima)

S3method(plot,segmented)
S3method(print,segmented)
S3method(summary,segmented)
S3method(print, summary.segmented)
S3method(lines,segmented)
S3method(confint,segmented)
S3method(vcov,segmented)
S3method(predict,segmented)
S3method(points,segmented)
