importFrom(stats, lm, glm, terms, terms.formula)
importFrom(stats, AIC, BIC, as.formula, poisson, update)

importFrom(stats, lm, glm, terms, terms.formula, model.response)

importFrom("stats", "coef", "contrasts", "gaussian", "glm.fit",
"optim", "pchisq", "pnorm", "predict", "printCoefmat", "pt",

importFrom("nlme", nlme, lme, pdSymm, reStruct, lmeStruct, varFunc,

importFrom("stats", "coef", "logLik", "model.frame", "predict", "terms", "update", "residuals")

importFrom("stats", "coef", "logLik", "model.frame", "predict", "terms", "update", "residuals", "as.formula")

importFrom(stats, coef, pnorm, qnorm, rnorm, lm, model.matrix, model.response, runif, optim, printCoefmat)

useDynLib(glmm, .registration = TRUE, .fixes = "C_")

importFrom(parallel, detectCores, makeCluster, stopCluster, clusterEvalQ, clusterExport)

## Export regular function names (no dots)

export("Cplackett", "Cgauss", "Cclayton", "cplackett", "cgauss", "cclayton")
export("checknsimul.glmmAK", "prior.fixed.glmmAK", "init.fixed.glmmAK", "prior.random.glmmAK", "init.random.glmmAK", "prior.gspline.glmmAK", "init.gspline.glmmAK", "headers.glmmAK")
export("design.cumlogit", "fit.cumlogit", "init00.cumlogit", "linear.predictors00.cumlogit", "prob00.cumlogit")

export(binToBinom, checkChain, cholInvArray, getDesignMatrix, getRaggedSeq, getStartingValues,
glmmBUGS, glmmPQLstrings, restoreParams, startingFunction, summaryChain,
winBugsRaggedArray, writeBugsModel, plotOne)

export( checkChain, cholInvArray, getDesignMatrix, getRaggedSeq,

useDynLib(glmmEP, .registration = TRUE, .fixes = "F_")

export(glmmboot, glmmML, glmmML.fit, print.glmmML, summary.glmmML,

export(ghq, glmmboot, glmmbootFit, glmmML, glmmML.fit,

importFrom("stats", "approx", "coef", "median", "predict", "rmultinom",

export(coef.glmnet.cr, cr.backward, cr.forward, nonzero.glmnet.cr, fitted.glmnet.cr, glmnet.cr, select.glmnet.cr, plot.glmnet.cr, predict.glmnet.cr, print.glmnet.cr)

export(coef.glmnetcr, cr.backward, cr.forward, nonzero.glmnetcr, fitted.glmnetcr, glmnetcr, select.glmnetcr, plot.glmnetcr, predict.glmnetcr, print.glmnetcr)
importFrom("graphics", "abline", "axis", "matplot", "plot", "title")