
importFrom(stats,  
  dnorm, dt, dcauchy,  dbeta, dlogis, dunif, dchisq, dmultinom,
  pnorm, pt, pcauchy, pbeta, plogis, punif, pf, pgamma, pweibull,
  qnorm, qchisq, qt, qf, qcauchy,
  rnorm, runif, rbeta, rcauchy, rlogis, rt, rchisq,
  is.empty.model, .getXlevels, as.formula, contrasts, 
  approxfun, uniroot, integrate, optim, nlminb, splinefun,  optimize,
  model.matrix, model.offset, model.response, model.weights,
  lm.wfit,  terms, model.frame, printCoefmat,  delete.response,  resid, 
  weighted.mean, median, quantile, var, cov2cor, 
  residuals, fitted, weights, na.pass
  )
  
importFrom(graphics, 
  plot, Axis, abline, axis, box, boxplot, contour, 
  hist, lines, mtext, panel.smooth, par, points, rug, 
  strheight, text, title)
  
importFrom(grDevices, 
  dev.interactive, devAskNewPage, extendrange, contourLines)
  
importFrom(utils, packageDescription)

importFrom(mnormt, 
  dmnorm, pmnorm, rmnorm, dmt, pmt, rmt, pd.solve, biv.nt.prob, mom.mtruncnorm)

importFrom(numDeriv, grad, hessian)

import(methods) 

import(stats4)

#-----------------------------  
S3method(weights, selm)
S3method(weights, mselm)
S3method(coef, selm)
S3method(coef, mselm)
S3method(plot, selm)
S3method(plot, mselm)
S3method(fitted, selm)
S3method(fitted, mselm)
S3method(residuals, selm)
S3method(residuals, mselm)
S3method(profile, selm)
S3method(confint, selm)
S3method(predict, selm)
S3method(print, summary.selm, print.summary.selm)
S3method(print, summary.mselm, print.summary.mselm)
S3method(sd, default)
S3method(logLik, fitdistr.grouped)
S3method(plot, fitdistr.grouped, plot.fitdistr.grouped)
S3method(summary, fitdistr.grouped, summary.fitdistr.grouped)
S3method(print, fitdistr.grouped, print.fitdistr.grouped)
S3method(coef, fitdistr.grouped)
S3method(vcov, fitdistr.grouped)
S3method(fitted, fitdistr.grouped, fitted.fitdistr.grouped)

#-----------------------------  
export(
  T.Owen, zeta, sn.cumulants, st.cumulants,
  dsn, psn, qsn, rsn,
  dst, pst, qst, rst,
  dsc, psc, qsc, rsc,
  dmsn, pmsn, rmsn, 
  dmst, pmst, rmst,
  dmsc, pmsc, rmsc,
  makeSECdistr, modeSECdistr, 
  marginalSECdistr, affineTransSECdistr,  conditionalSECdistr, 
  dp2cp, cp2dp, dp2op, op2dp, 
  sn.infoUv, sn.infoMv, st.infoUv, st.infoMv,
  selm, MPpenalty, Qpenalty, extractSECdistr,
  selm.fit, sn.mple,  st.mple, msn.mle, msn.mple, mst.mple,
  vech, vech2mat, duplicationMatrix,
  coef.selm, plot.selm, residuals.selm, fitted.selm,
  coef.mselm, plot.mselm, residuals.mselm, fitted.mselm,
  profile.selm, confint.selm, predict.selm,
  sd.default, sd, 
  dSymmModulated, rSymmModulated, dmSymmModulated, rmSymmModulated,
  plot2D.SymmModulated,
  fournum, st.prelimFit, mst.prelimFit, galton_moors2alpha_nu, 
  pprodt2, pprodn2, qprodt2,
  tr, blockDiag,
  dsun, psun, rsun, sunMean, sunVcov, sunMardia,
  makeSUNdistr, #  plot.SUNdistr, summary.SUNdistr,
  affineTransSUNdistr, marginalSUNdistr,  conditionalSUNdistr, 
  joinSUNdistr, convolutionSUNdistr,
  convertSN2SUNdistr, convertCSN2SUNpar,
  fitdistr.grouped, plot.fitdistr.grouped, spread.grouped
  )
 
exportMethods(show, plot, summary, coef,  logLik, residuals,
   fitted, mean, vcov, sd, profile, confint, predict)

exportClasses(SECdistrUv, SECdistrMv, summary.SECdistrUv, 
  summary.SECdistrMv, selm, mselm, summary.selm, summary.mselm,
  SUNdistr, summary.SUNdistr)
