useDynLib(MASS)

# functions
export(area, as.fractions, bandwidth.nrd, bcv, boxcox, con2tr,
       contr.sdif, corresp, cov.trob, denumerate, dose.p, dropterm, enlist,
       eqscplot, family.negbin, fbeta, fitdistr, fractions,
       frequency.polygon, gamma.dispersion, gamma.shape, ginv,
       glm.convert, glm.nb, glmmPQL, hist.FD, hist.scott, huber,
       hubers, is.fractions, isoMDS, kde2d, lda, ldahist, lm.gls,
       lm.ridge, lmwork, loglm, loglm1, logtrans, MASS.data.load, mca,
       mvrnorm, nclass.freq, neg.bin, negative.binomial,
       negexp.SSival, Null, parcoord, polr, psi.bisquare, psi.hampel,
       psi.huber, qda, rational, renumerate, rlm, rms.curv, rnegbin,
       select, Shepard, stdres, stepAIC, studres, theta.md, theta.ml,
       theta.mm, truehist, ucv, width.SJ, write.matrix)

export(cov.mcd, cov.mve, cov.rob, lmsreg, lqs, lqs.formula, ltsreg)

# datasets
export(abbey, accdeaths, addterm, Aids2, Animals, anorexia, austres,
       bacteria, beav1, beav2, biopsy, birthwt, Boston, cabbages,
       caith, Cars93, cats, cement, chem, coop, cpus, crabs, Cushings,
       DDT, deaths, drivers, eagles, epil, farms, fdeaths, fgl,
       forbes, GAGurine, galaxies, gehan, genotype, geyser, gilgais,
       hills, housing, immer, Insurance, leuk, lh, mammals, mcycle,
       mdeaths, Melanoma, menarche, michelson, minn38, motors, muscle,
       newcomb, nlschools, nottem, npk, npr1, oats, OME, painters,
       petrol, phones, Pima.te, Pima.tr, Pima.tr2, quine, Rabbit,
       road, rock, rotifer, Rubber, sammon, ships, shoes, shrimp,
       shuttle, Sitka, Sitka89, Skye, snails, SP500, steam, stormer,
       survey, synth.te, synth.tr, topo, Traffic, UScereal, UScrime,
       VA, waders, whiteside, wtloss)


# needed for Recall
export(denumerate.formula, renumerate.formula)

# documented but unexported methods
# export(addterm.default, addterm.glm, addterm.lm,
#        anova.loglm, anova.negbin,
#        boxcox.default, boxcox.formula, boxcox.lm,
#        confint.glm, confint.nls,
#        dropterm.default, dropterm.glm, dropterm.lm,
#        gamma.shape.glm,
#        loglm1.data.frame, loglm1.default, loglm1.xtabs,
#        logtrans.default, logtrans.formula, logtrans.lm,
#        pairs.lda, pairs.profile, plot.lda, plot.mca,
#        plot.profile, plot.ridgelm, predict.lda, predict.mca,
#        predict.qda, print.abbrev, print.Anova,
#        profile.glm, select.ridgelm,
#        summary.loglm, summary.negbin, summary.rlm)

# use match.call and record the call
# export(lda.data.frame, lda.default, lda.formula, lda.matrix,
#        qda.data.frame, qda.default, qda.formula, qda.matrix,
#        rlm.default, rlm.formula)

importFrom(graphics, pairs, plot)
importFrom(stats, anova, biplot, coef, confint, extractAIC, fitted, 
	   logLik, model.frame, predict, profile, residuals, se.contrast,
           terms, update, vcov)


S3method("[", fractions)
S3method("[<-", fractions)
S3method(addterm, default)
S3method(addterm, glm)
S3method(addterm, lm)
S3method(addterm, mlm)
S3method(addterm, negbin)
S3method(addterm, survreg)
S3method(anova, loglm)
S3method(anova, negbin)
S3method(as.character, fractions)
S3method(biplot, correspondence)
S3method(boxcox, default)
S3method(boxcox, formula)
S3method(boxcox, lm)
S3method(coef, fitdistr)
S3method(coef, lda)
S3method(coef, loglm)
S3method(confint, glm)
S3method(confint, nls)
S3method(confint, profile.glm)
S3method(confint, profile.nls)
S3method(corresp, xtabs)
S3method(corresp, data.frame)
S3method(corresp, default)
S3method(corresp, factor)
S3method(corresp, formula)
S3method(corresp, matrix)
S3method(denumerate, formula)
S3method(dropterm, default)
S3method(dropterm, glm)
S3method(dropterm, lm)
S3method(dropterm, mlm)
S3method(dropterm, negbin)
S3method(dropterm, survreg)
S3method(extractAIC, gls)
S3method(extractAIC, lme)
S3method(extractAIC, loglm)
S3method(extractAIC, polr)
S3method(fitted, loglm)
S3method(gamma.shape, glm)
S3method(lda, data.frame)
S3method(lda, default)
S3method(lda, formula)
S3method(lda, matrix)
S3method(loglm1, data.frame)
S3method(loglm1, default)
S3method(loglm1, xtabs)
S3method(logLik, negbin)
S3method(logtrans, default)
S3method(logtrans, formula)
S3method(logtrans, lm)
S3method(lqs, default)
S3method(lqs, formula)
S3method(Math, fractions)
S3method(model.frame, lda)
S3method(model.frame, polr)
S3method(model.frame, qda)
S3method(Ops, fractions)
S3method(pairs, lda)
S3method(pairs, profile)
S3method(plot, correspondence)
S3method(plot, lda)
S3method(plot, mca)
S3method(plot, profile)
S3method(plot, ridgelm)
S3method(predict, lda)
S3method(predict, lqs)
S3method(predict, mca)
S3method(predict, polr)
S3method(predict, qda)
S3method(print, abbrev)
S3method(print, Anova)
S3method(print, anova.loglm)
S3method(print, correspondence)
S3method(print, fitdistr)
S3method(print, fractions)
S3method(print, gamma.shape)
S3method(print, glm.dose)
S3method(print, lda)
S3method(print, loglm)
S3method(print, lqs)
S3method(print, mca)
S3method(print, polr)
S3method(print, qda)
S3method(print, ridgelm)
S3method(print, rlm)
S3method(print, rms.curv)
S3method(print, summary.loglm)
S3method(print, summary.negbin)
S3method(print, summary.polr)
S3method(print, summary.rlm)
S3method(profile, glm)
S3method(qda, data.frame)
S3method(qda, default)
S3method(qda, formula)
S3method(qda, matrix)
S3method(residuals, loglm)
S3method(rlm, default)
S3method(rlm, formula)
S3method(se.contrast, rlm)
S3method(select, ridgelm)
S3method(Summary, fractions)
S3method(summary, loglm)
S3method(summary, negbin)
S3method(summary, polr)
S3method(summary, rlm)
S3method(t, fractions)
S3method(terms, gls)
S3method(terms, lme)
S3method(update, loglm)
S3method(vcov, polr)
