importFrom("stats", "binomial", "contr.sum", "contrasts<-", "cor", "glm", "lm", "plogis", "qnorm")

exportPattern(CCM_boot, make_ccm_data, SSR_check_signal, ccmtest, multispatialCCM-internal, SSR_pred_boot)
useDynLib(multispatialCCM)

exportPattern(CCM_boot, make_ccm_data, SSR_check_signal, ccmtest, multispatialCCM-internal, SSR_pred_boot)
useDynLib(multispatialCCM)
importFrom("stats", "cor", "cor.test", "lm", "rlnorm", "rnorm", "runif", "sd")

import("splines", "date", "survival", "statmod", "date", "relsurv")
importFrom("stats", "optim", "pnorm", "pchisq")
export("mm2", "m3", "m3rs", "m4", "m4rs", "sm3", "sm3rs", "sm3ic", "sm4",  "sm4rs", "lrs.multistate", "pred.mm2")

export(data.list, bm, nvar, varnames, "varnames<-", data.list.mold, as.data.list, is.data.list, repdim, aperm.data.list, variablize, read.multitable, read.multicsv, read.multidelim, read.fourthcorner, multifile.choose, dlcast)

export(data.list, bm, nvar, varnames, "varnames<-", data.list.mold, as.data.list, is.data.list, repdim, aperm.data.list, variablize, read.multitable, read.multicsv, read.multidelim, read.fourthcorner, multifile.choose, dlcast, dlmelt, dropdl, dropl, within.data.list, dims_to_vars, variable, variableGroup, dlapply, sdlapply, variable_margins)

export(data.list, bm, nvar, varnames, "varnames<-", data.list.mold, as.data.list, is.data.list, repdim, aperm.data.list, variablize, read.multitable, read.multicsv, read.multidelim, read.fourthcorner, multifile.choose, dlcast, dlmelt, dropdl, dropl, within.data.list, dims_to_vars, variable, variableGroup, dlapply, sdlapply, variable_margins, read.matrix, simple.scale, is.4th.corner)

export(data.list, bm, nvar, varnames, "varnames<-", data.list.mold,
as.data.list, is.data.list, repdim, aperm.data.list, variablize,
multifile.choose, dlcast, dlmelt, dropdl, dropl, within.data.list,
dims_to_vars, variable, variableGroup, dlapply, sdlapply,

"par", "plot", "plot.new", "plot.window", "plot.xy")
importFrom("stats", "as.ts", "deltat", "is.ts", "mvfft", "na.fail",

export(centre, demod.dpss, dpss, dpssToEigenvalues,dropFreqs, dropFreqs.default, dropFreqs.mtm, dropFreqs.mtm.coh, dropFreqs.spec, mtm.coh, multitaperTrend, plot.mtm, plot.mtm.coh, sineTaper, spec.mtm )