
useDynLib(miceadds)



######################################
########### IMPORTS ##################



#***************************************************
#*************** R Basics / Linking To *************


importFrom(graphics, par)
importFrom(graphics, plot)
importFrom(methods, is)
importFrom(Rcpp, evalCpp)
importFrom(stats, aggregate)
importFrom(stats, aov)
importFrom(stats, as.formula)
importFrom(stats, coef)
importFrom(stats, cov)
importFrom(stats, cov2cor)
importFrom(stats, cor)
importFrom(stats, dnorm)
importFrom(stats, fitted)
importFrom(stats, get_all_vars)
importFrom(stats, glm)
importFrom(stats, lm)
importFrom(stats, model.matrix)
importFrom(stats, na.omit)
importFrom(stats, pchisq)
importFrom(stats, pf)
importFrom(stats, plogis)
importFrom(stats, pnorm)
importFrom(stats, predict)
importFrom(stats, princomp)
importFrom(stats, pt)
importFrom(stats, qnorm)
importFrom(stats, qt)
importFrom(stats, rbinom)
importFrom(stats, rchisq)
importFrom(stats, resid)
importFrom(stats, residuals)
importFrom(stats, rnorm)
importFrom(stats, runif)
importFrom(stats, sd)
importFrom(stats, var)
importFrom(stats, vcov)
importFrom(stats, weighted.mean)
importFrom(utils, citation)
importFrom(utils, flush.console)
importFrom(utils, install.packages)
importFrom(utils, packageDescription)
importFrom(utils, read.csv)
importFrom(utils, read.csv2)
importFrom(utils, read.fwf)
importFrom(utils, read.table)
importFrom(utils, sessionInfo)
importFrom(utils, str)
importFrom(utils, write.csv)
importFrom(utils, write.csv2)
importFrom(utils, write.table)


#***************************************************
#************** Depends ****************************

import(mice)


#***************************************************
#************** Imports ****************************
 
importFrom(bayesm, rtrun)
importFrom(car, Anova) 
importFrom(foreign, read.spss) 
importFrom(grouped, grouped)
importFrom(Hmisc, wtd.var)
importFrom(inline, getDynLib)
importFrom(lme4, lmer)
importFrom(lme4, ranef)
importFrom(MASS, mvrnorm)
importFrom(MBESS, ci.reliability)
importFrom(MCMCglmm, MCMCglmm)
importFrom(mitools, MIcombine)
importFrom(mvtnorm, dmvnorm)
importFrom(mvtnorm, rmvnorm)
importFrom(multiwayvcov, cluster.vcov)
importFrom(pls, plsr)
importFrom(sirt, rowKSmallest2.sirt)
importFrom(sjmisc, write_spss)
importFrom(sjmisc, set_label)
importFrom(TAM, tam.pv)
importFrom(TAM, tam.latreg)






######################################
########### EXPORTS ##################


#############################
## exports

export(
    complete.mids.1chain,
    complete.mids.nmi,
    create.designMatrices.waldtest,
    crlrem,
    cxxfunction.copy, 
    datlist2mids,
    datlist2nested.datlist,
    datalist2mids,
    datlist_create,
    draw.pv.ctt,
    fast.groupmean,
    fast.groupsum,
    glm.cluster,
    grep.vec, 
    index.dataframe, 
    jomo2datlist,
    kernelpls.fit2,
    library_install,
    List2nestedList,
    lm.cluster,
    load.data,
    load.Rdata, 
    load.Rdata2,
    ma.scale2,
    ma.wtd.corNA,     
    ma.wtd.covNA, 
    ma.wtd.meanNA, 
    ma.wtd.sdNA ,
    mi.anova,
    mi_dstat,
    mice.1chain,
    mice.impute.2l.contextual.norm,
    mice.impute.2l.contextual.pmm, 
    mice.impute.2l.eap,
    mice.impute.2l.groupmean, 
    mice.impute.2l.groupmean.elim, 
    mice.impute.2l.latentgroupmean.MCMC,
    mice.impute.2l.latentgroupmean.ML,
    mice.impute.2l.plausible.values,
    mice.impute.2l.pls,
    mice.impute.2l.pls2,
    mice.impute.2lonly.norm2,
    mice.impute.2lonly.pmm2,
    mice.impute.grouped,
    mice.impute.pmm3, 
    mice.impute.pmm4,  
    mice.impute.pmm5,  
    mice.impute.pmm6,     
    mice.impute.tricube.pmm, 
    mice.impute.tricube.pmm2, 
    mice.impute.weighted.norm,
    mice.impute.weighted.pmm,
    mice.nmi,
    micombine.chisquare,
    micombine.cor,
    micombine.F,
    MIcombine.NestedImputationResultList,
    mids2datlist,
    MIwaldtest,
    nested.datlist_create,
    nested.datlist2datlist,
    NestedImputationList,
    nestedList2List,
    NMIcombine,
    NMIextract,
    NMIwaldtest,
    output.format1, 
    pca.covridge,
    pool_mi,
    pool_nmi,
    pool.mids.nmi,
    read.fwf2,
    Reval, 
    Revalpr,
    Revalprstr,
    Rhat.mice,
    round2, 
    Rsessinfo, 
    save.data,
    save.Rdata, 
    scale_datlist,
    scan.vec,
    scan.vector, 
    scan0,
    source.all, 
    str_C.expand.grid,
    subset_datlist,
    sumpreserving.rounding,
    systime,
    tw.imputation,
    tw.mcmc.imputation,
    VariableNames2String,
    visitSequence.determine,
    within.imputationList,
    withPool_MI,
    withPool_NMI,
    write.datlist,
    write.fwf2, 
    write.mice.imputation,
    write.pspp 
        )


#########################################
########### S3 METHODS ##################

S3method(coef, glm.cluster)
S3method(coef, lm.cluster)
S3method(coef, mipo.nmi)
S3method(coef, pool_mi)
S3method(MIcombine, NestedImputationResultList)
S3method(plot, mids.1chain)
S3method(predict, kernelpls.fit2)
S3method(print, datlist)
S3method(print, mids.1chain)
S3method(print, mids.nmi)
S3method(print, nested.datlist)
S3method(print, NestedImputationList)
S3method(subset, datlist)
S3method(subset, imputationList)
S3method(subset, mids)
S3method(subset, mids.1chain)
S3method(summary, glm.cluster)
S3method(summary, lm.cluster)
S3method(summary, mids.1chain)
S3method(summary, mids.nmi)
S3method(summary, mipo.nmi)
S3method(summary, mira.nmi)
S3method(summary, MIwaldtest)
S3method(summary, NMIwaldtest)
S3method(summary, pool_mi)
S3method(vcov, glm.cluster)
S3method(vcov, lm.cluster)
S3method(vcov, mipo.nmi)
S3method(vcov, pool_mi)
S3method(with, datlist)
S3method(with, mids.1chain)
S3method(with, mids.nmi)
S3method(with, nested.datlist)
S3method(with, NestedImputationList)
S3method(within, datlist)
S3method(within, imputationList)
S3method(within, nested.datlist)
S3method(within, NestedImputationList)
