## import
importFrom("methods", 
           "is", "new", "slot")

importFrom("stats", 
           "vcov", "aggregate", "dnorm", "glm", "nobs", "predict", "family")

importFrom("Matrix", 
           "forceSymmetric", "lu", "Diagonal", "nearPD")

importClassesFrom("Matrix", 
                   "dgCMatrix", "dtCMatrix", "dgTMatrix", "dsCMatrix", "dgeMatrix")

importMethodsFrom("Matrix", 
                  "*", "solve", "t", "which", "diag", "crossprod", "tcrossprod", 
                  "chol")

importFrom("utils", 
           "combn", "getFromNamespace")

importFrom("sandwich",
           "estfun", "bread")

importFrom("lme4", 
            "getME", "vcov.merMod", "ranef", "VarCorr", "devfun2")

importClassesFrom("lme4", 
                   "lmerMod", "glmerMod")

importFrom("nonnest2", 
            "llcont")

importFrom("lavaan", 
           "lav_matrix_trace")

importFrom("numDeriv",
           "hessian")


## S3method
S3method(estfun, lmerMod)
S3method(vcov, lmerMod)
S3method(bread, lmerMod)
S3method(llcont, lmerMod)
S3method(estfun, glmerMod)
S3method(vcov, glmerMod)
S3method(bread, glmerMod)
S3method(llcont, glmerMod)


## export
export(estfun.lmerMod)
export(vcov.lmerMod)
export(bread.lmerMod)
export(llcont.lmerMod)
export(estfun.glmerMod)
export(vcov.glmerMod)
export(bread.glmerMod)
export(llcont.glmerMod)
