importFrom(Matrix, sparse.model.matrix)
importMethodsFrom(Matrix, colSums, diag, rowSums, t, tcrossprod)
importFrom(TMB, MakeADFun, newton, openmp, sdreport)
importFrom(grDevices, col2rgb, colorRamp, dev.flush, dev.hold, rgb)
importFrom(graphics, abline, axTicks, axis, box, grconvertX, grconvertY,
           lines, mtext, par, plot.new, plot.window, points, polygon,
           rect, segments, strheight, strwidth, text, title)
importFrom(methods, as, is, new)
importFrom(nlme, fixef, ranef)
importFrom(parallel, clusterEvalQ, clusterExport, clusterMap,
           clusterSetRNGStream, makePSOCKcluster, mcMap, mcmapply,
           stopCluster)
importFrom(stats, aggregate, approx, as.formula, coef, complete.cases,
           confint, cov2cor, df.residual, extractAIC, fitted, formula,
           getCall, lm, logLik, model.frame, model.matrix, model.offset,
           na.fail, na.omit, na.pass, nlm, nlminb, nobs, optim,
           optimHess, plogis, predict, profile, qchisq, qlogis, qnorm,
           runif, simulate, spline, terms, update, vcov)
importFrom(utils, capture.output, str)

export(Wishart, InverseWishart, LKJ, Normal,
       R0, finalsize, timescale,
       cov2theta, theta2cov,
       dgi, pgi, qgi, rgi,
       fixef, ranef,
       egf, egf1, egf1scan,
       egf_control,
       egf_control_plot,
       egf_has_converged,
       egf_has_random,
       egf_model,
       egf_optimizer,
       egf_parallel,
       egf_top)

S3method(as.list, coef.egf)
S3method(coef, egf)
S3method(coef, egf_no_fit)
S3method(coef, simulate.egf_model)
S3method(confint, egf)
S3method(confint, fitted.egf)
S3method(confint, predict.egf)
S3method(confint, profile.egf)
S3method(df.residual, egf)
S3method(df.residual, egf_no_fit)
S3method(egf, egf_model)
S3method(egf, simulate.egf_model)
S3method(egf_top, default)
S3method(egf_top, egf)
S3method(egf_top, egf_model)
S3method(egf_top, egf_no_fit)
S3method(extractAIC, egf)
S3method(fitted, egf)
S3method(fitted, egf_no_fit)
S3method(fixef, egf)
S3method(fixef, egf_no_fit)
S3method(formula, egf)
S3method(formula, egf_no_fit)
S3method(getCall, egf)
S3method(getCall, egf_no_fit)
S3method(getCall, simulate.egf_model)
S3method(labels, coef.egf)
S3method(logLik, egf)
S3method(model.frame, egf)
S3method(model.frame, egf_no_fit)
S3method(model.matrix, egf)
S3method(model.matrix, egf_no_fit)
S3method(nobs, egf)
S3method(nobs, egf_no_fit)
S3method(plot, confint.egf)
S3method(plot, egf)
S3method(plot, profile.egf)
S3method(predict, egf)
S3method(print, coef.egf)
S3method(print, egf)
S3method(print, egf_no_fit)
S3method(print, summary.egf)
S3method(profile, egf)
S3method(ranef, egf)
S3method(ranef, egf_no_fit)
S3method(simulate, egf)
S3method(simulate, egf_model)
S3method(summary, egf)
S3method(terms, egf)
S3method(terms, egf_no_fit)
S3method(vcov, egf)
