
useDynLib(tergm)

importFrom(utils, packageDescription)
importFrom(robustbase, lmrob, covMcd)
importFrom(MASS, ginv)
importFrom(coda, mcmc, mcmc.list, effectiveSize)
importFrom(nlme, gls, corAR1)
import(statnet.common, ergm, network, networkDynamic)
importFrom("grDevices", "dev.cur", "dev.interactive", "dev.list",
             "dev.new", "dev.set", "hsv", "rgb")
importFrom("graphics", "plot")
importFrom("stats", "simulate","aggregate", "coef", "cov", "cov2cor", "lm",
             "logLik", "mahalanobis", "median", "na.omit", "pchisq",
             "pnorm", "quantile", "resid", "sd", "var", "vcov", "window")

# Export all names that do not begin with a dot.
#exportPattern("^[^\\.]")
export(
 # all.same,  made internal
coefficients.stergm,
coef.stergm, 
# combine.networks, made internal
control.logLik.stergm, 
control.simulate.network,
control.simulate.stergm, 
control.stergm,
control.tergm.godfather, 
# get.dev,   made internal
gof.stergm, 
impute.network.list,
# is.lasttoggle,    made internal
logLikNull.stergm,
logLik.stergm, 
mcmc.diagnostics.stergm,
# networkDynamic.apply.changes,   made internal 
# network.extract.with.lasttoggle,
plot.gof.stergm, 
print.gof.stergm,
print.stergm, 
print.summary.stergm,
simulate.network, 
simulate.networkDynamic,
simulate.stergm, 
stergm,
# stergm.CMLE,    made internal
# stergm.EGMME,   made internal
# stergm.EGMME.GD,    made internal
# stergm.EGMME.initialfit,   made internal
# stergm.EGMME.SA,    made internal
# stergm.EGMME.SA.Phase2.C,   made internal
stergm.getMCMCsample, 
stergm.getMCMCsample.slave, 
summary.gof.stergm,
summary.statistics.networkDynamic, 
summary.stergm,
tergm.godfather
# to.networkDynamic.lasttoggle    made internal
)

## # export all the ergm terms
## exportPattern("^InitErgmTerm.*")
## # export all the MH proposals
## exportPattern("^InitMHP.*")
## # export all the constaints
## exportPattern("^InitConstraint.*")

S3method('coef','stergm')
S3method('gof','stergm')
S3method('logLik','stergm')
S3method('logLikNull','stergm')
S3method('mcmc.diagnostics','stergm')
S3method('plot','gof.stergm')
S3method('print','gof.stergm')
S3method('print','stergm')
S3method('print','summary.stergm')
S3method('simulate','network')
S3method('simulate','networkDynamic')
S3method('simulate','stergm')
S3method('summary','gof.stergm')
S3method('summary.statistics','networkDynamic')
S3method('summary','stergm')
