export(gamlss, gamlss.control, glim.control, is.gamlss,
       centiles, centiles.com, centiles.split, centiles.pred,
       centiles.fan,
       find.hyper, fittedPlot, fv, lp, lpred,
       pdf.plot, prof.dev, prof.term, refit, rqres.plot, wp,
       IC, Q.stats, par.plot, histDist,
       stepGAIC.VR, stepGAIC.CH, stepGAIC, gamlss.scope, stepGAICAll.A,
       stepGAICAll.B,  drop1All, add1All, term.plot,# stepTGD,
       drop1TGD, add1TGD, stepTGD,stepTGDAll.A,
       cs, gamlss.cs, cs.control,
       scs, bp,
       ps, gamlss.ps,
       pb, gamlss.pb, pb.control,
       pbp, gamlss.pbp, pbp.control,
       pbm, gamlss.pbm, pbm.control,
       pbo, gamlss.pbo, pbo.control,
       pbz, gamlss.pbz, pbz.control,
       cy, gamlss.cy, cy.control,
       pvc, gamlss.pvc, pvc.control,
       pbc, gamlss.pbc, pbc.control,
       fp, gamlss.fp,
       bfp,
       re, gamlss.re,
#       rc, gamlss.rc,
       pp, gamlss.pp,
       lo, gamlss.lo,
   random, gamlss.random,
        ri, gamlss.ri,
       GAIC, .hat.WX,  GAIC.table, GAIC.scaled, gamlssNews,
       predictAll, #own.linkfun, own.linkinv, own.mu.eta,own.valideta,
  #      VGD, VGD1, VGD2, TGD,
       gamlssVGD, VGD,  getTGD, TGD, gamlssCV, CV,
       edf, edfAll,
       LR.test, dtop,
       gamlssML, fitDist, histSmo, histSmoO, histSmoC, histSmoP,
       calibration, lms, z.scores, Rsq, gen.likelihood,
       acfResid, rvcov, get.K, getSmo, 
       .gamlss.sm.list, .gamlss.bi.list, .gamlss.multin.list,
       .counts, .binom, .realline, .realplus, .realAll, .real0to1, 
       plot2way, loglogSurv1, loglogSurv2, loglogSurv3, loglogSurv, 
       logSurv, logSurv0, 
       quantSheets.control, quantSheets, findPower, z.scoresQS,
       getZmatrix, vis.lo, VC.test,
       pcat, gamlss.pcat, plotDF, plotLambda,
       getPEF, devianceIncr, get.rqres, 
       gamlssMLpred, chooseDist, fitDistPred, getOrder,
       chooseDistPred,
       numeric.deriv, getQuantile, loglogplot, ECDF, coefAll,
       .hat.WX, .binom, .counts, .gamlss.bi.list, .gamlss.multin.list, 
        .gamlss.sm.list, .real0to1, .realAll, .realline,
        .realplus )


# datasets
#export(abdom,aids,db,rent,usair,Mums,fabric)


# needed for gamlss family
#export(as.family, gamlss.family, gamlss.family.default, as.gamlss.family)

# documented but unexported methods


#importFrom(graphics, pairs, plot)
#importFrom(stats, AIC, deviance, coef, extractAIC, family, fitted,
#          formula, logLik, model.frame,  predict, residuals, terms, update,
#           loess)
importFrom(MASS, addterm, dropterm, truehist)
importFrom(survival, Surv, is.Surv)
importFrom("methods", "is")
#importFrom(graphics, plot)
#importFrom(base, print)
importFrom(splines, bs, ns, spline.des, splineDesign)
#importFrom(gamlss.tr, trun)
import(stats)
import(graphics)
import(gamlss.data)
import(gamlss.dist)
importFrom(nlme, lme, varFixed, ranef)
import(parallel)
import(utils)
import(grDevices)

S3method(addterm, gamlss)
S3method(add1, gamlss)
S3method(drop1, gamlss)
S3method(AIC, gamlss)
S3method(coef, gamlss)
S3method(deviance, gamlss)
S3method(dropterm, gamlss)
S3method(extractAIC, gamlss)
S3method(fitted, gamlss)
S3method(formula, gamlss)
S3method(terms, gamlss)
S3method(model.frame, gamlss)
S3method(plot, gamlss)
S3method(print, gamlss)
S3method(residuals, gamlss)
S3method(summary, gamlss)
S3method(update, gamlss)
S3method(predict, gamlss)
S3method(model.matrix, gamlss)
S3method(vcov, gamlss)
S3method(logLik, gamlss)
S3method(confint, gamlss)
S3method(hatvalues, gamlss)
S3method(predict, lms)

S3method(print, quantSheets)
S3method(predict, quantSheets)
S3method(fitted, quantSheets)
S3method(residuals, quantSheets)

S3method(fitted, gamlssML)
S3method(vcov, gamlssML)
S3method(summary, gamlssML)
S3method(predict, gamlssML)

# smoothers 
# --------------------------
S3method(print, pcat)
S3method(fitted, pcat)
S3method(coef, pcat)
S3method(plot, pcat)
#---------------------------
S3method(plot, histSmo)
S3method(lines, histSmo)
S3method(print, histSmo)
#--------------------------
S3method(plot, ri)
S3method(coef, ri)
S3method(fitted, ri)
S3method(print, ri)
#-------------------------
S3method(plot, random)
S3method(coef, random)
S3method(fitted, random)
S3method(print, random)
#-------------------------
S3method(plot, pb)
S3method(coef, pb)
S3method(print, pb)
S3method(knots, pb)
S3method(fitted, pb)
#-------------------------
S3method(plot, pvc)
S3method(fitted, pvc)
S3method(coef, pvc)
S3method(print, pvc)
#-------------------------
S3method(print, pbm)
S3method(print, pbz)
#-------------------------
# pick up fitted() coef() plot() knots() from bp()
S3method(print, pbc)
#-------------------------
S3method(print, cy)

S3method(distributions3::prodist, gamlss)

useDynLib(gamlss, .registration = TRUE)
