import("survival")
import("data.table")
importFrom("stats", "coef", "cov", "vcov", "formula", "gaussian", "model.frame", "na.pass", "pnorm", "quasibinomial", "quasipoisson", "glm.fit", "model.matrix", "terms", "printCoefmat", "reformulate")
importFrom("nleqslv", "nleqslv")
importFrom("Rcpp", "sourceCpp", "evalCpp")
export(drgee, coef.drgee, vcov.drgee,
       print.drgee, summary.drgee,
       print.summary.drgee,
       gee, coef.gee, vcov.gee,
       naiveVcov.gee,
       print.gee, summary.gee,
       print.summary.gee,    
       findRoots, 
       robVcov,
       robustVcov,
       naiveVcov,
       drgeeData, summary.drgeeData, print.summary.drgeeData,
       getScoreResidualsFromClogit,
       centerX
       )

S3method(coef, drgee)
S3method(vcov, drgee)
S3method(summary, drgee)
S3method(print, drgee)
S3method(summary, drgee)
S3method(print, summary.drgee)
S3method(coef, gee)
S3method(vcov, gee)
S3method(naiveVcov, gee)
S3method(summary, gee)
S3method(print, gee)
S3method(summary, gee)
S3method(print, summary.gee)
S3method(summary, drgeeData)
S3method(print, summary.drgeeData)

useDynLib(drgee, conditRes, center, .registration = TRUE, .fixes = "CPP_")

