##############
# imports:
##############

importFrom(randomForest,randomForest)
importFrom(splines,bs)
importFrom(stats,
	   as.formula, confint, cov2cor, lm, median, model.matrix, 
	   na.omit, pnorm, predict, printCoefmat, qnorm, quantile, 
           residuals, rnorm,
           sigma, setNames, symnum, vcov)
importFrom(glmnet, cv.glmnet)
importFrom(matrixcalc, is.positive.definite)
importFrom(lme4, 
           fixef, getME, lmer, mkVarCorr, ngrps,
           ranef, VarCorr, vcov.merMod, 
           .prt.grps, .prt.methTit, 
           .prt.resids, .prt.VC, .prt.warn)
importFrom(methods, as, new)


##############
# our exports:
##############

export(regsdml)
export(mmdml
      , fixef, ranef, vcov, VarCorr
      , example_data_mmdml
)


##############
# S3 methods:
##############

S3method(coef,   regsdml)
S3method(confint,regsdml)
S3method(print,  confint.regsdml)
S3method(print,  regsdml)
S3method(print,  summary.regsdml)
S3method(print,  vcov.regsdml) 
S3method(summary,regsdml)
S3method(vcov,   regsdml)

S3method(confint,   mmdml)
S3method(fixef,     mmdml)
S3method(print,     mmdml)
S3method(print,     summary.mmdml)
S3method(ranef,     mmdml)
S3method(residuals, mmdml)
S3method(sigma,     mmdml)
S3method(summary,   mmdml)
S3method(vcov,      mmdml)
S3method(VarCorr,   mmdml)
