useDynLib(aftgee, .registration = TRUE)
export(aftgee, aftsrr, aftgee.control)
importFrom("MASS", ginv)
importFrom("BB", BBsolve, dfsane)
importFrom("survival", Surv, survfit, basehaz, coxph)
importFrom("geepack", geese, geese.fit)
importFrom("parallel", parLapply, makeCluster, clusterExport, stopCluster, detectCores)

importFrom("methods", "getClass")
importFrom("graphics", "boxplot")
importFrom("stats", "approx", "coef", "complete.cases", "lm", 
           "model.extract", "model.matrix", "pnorm", "printCoefmat",
           "rexp", "rnorm", "var", "vcov", "weights")
importFrom("utils", "vi")

S3method(print, aftgee)
S3method(print, aftsrr)
S3method(summary, aftgee)
S3method(summary, aftsrr)
S3method(coef, aftsrr)
S3method(coef, aftgee)
S3method(residuals, aftsrr)
S3method(residuals, aftgee)
S3method(vcov, aftsrr)
S3method(vcov, aftgee)
S3method(predict, aftsrr)
S3method(predict, aftgee)
S3method(print, summary.aftgee)
S3method(print, summary.aftsrr)
