
useDynLib(TAM)


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



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

importFrom(graphics, abline)
importFrom(graphics, axis)
importFrom(graphics, par)
importFrom(graphics, plot)
importFrom(graphics, points)
importFrom(graphics, legend)
importFrom(graphics, lines)
importFrom(methods, is)
importFrom(Rcpp, evalCpp)
importFrom(stats, aggregate)
importFrom(stats, anova)
importFrom(stats, as.formula)
importFrom(stats, coef)
importFrom(stats, complete.cases)
importFrom(stats, contrasts)
importFrom(stats, cov.wt)
importFrom(stats, cov2cor)
importFrom(stats, dbeta)
importFrom(stats, dnorm)
importFrom(stats, fitted)
importFrom(stats, lm)
importFrom(stats, lm.wfit)
importFrom(stats, logLik)
importFrom(stats, model.matrix)
importFrom(stats, na.omit)
importFrom(stats, p.adjust)
importFrom(stats, pchisq)
importFrom(stats, pnorm)
importFrom(stats, predict)
importFrom(stats, qlogis)
importFrom(stats, qnorm)
importFrom(stats, quantile)
importFrom(stats, resid)
importFrom(stats, residuals)
importFrom(stats, rnorm)
importFrom(stats, runif)
importFrom(stats, sd)
importFrom(stats, update.formula)
importFrom(stats, terms)
importFrom(stats, var)
importFrom(stats, vcov)
importFrom(utils, combn)
importFrom(utils, flush.console)
importFrom(utils, packageDescription)
importFrom(utils, sessionInfo)



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

import(CDM)



#***************************************************
#************** Imports ****************************





#***************************************************
#************** Suggests ***************************
# base::requireNamespace("another_package")
# TAM::require_namespace_msg("another_package")
# CDM::CDM_require_namespace("another_package")


# importFrom(coda, effectiveSize)
# importFrom(coda, gelman.diag)
# importFrom(coda, mcmc)
# importFrom(coda, mcmc.list)
# importFrom(GPArotation, oblimin)
# importFrom(grDevices, dev.off)
# importFrom(grDevices, dev.cur)
# importFrom(lavaan, lavaanify)
# importFrom(lavaan, parameterTable)
# importFrom(lattice, xyplot)
# importFrom(MASS, ginv)
# importFrom(miceadds, datalist2mids)
# importFrom(mvtnorm, dmvnorm)
# importFrom(mvtnorm, pmvnorm)
# importFrom(mvtnorm, rmvnorm)  # replaced by CDM::CDM_rmvnorm
# importFrom(plyr, ldply)
# importFrom(psych, schmid)
# importFrom(sfsmisc, QUnif)
# importFrom(splines, bs)
# importFrom(WrightMap, wrightMap)


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

export(.A.matrix)
export(.A.PCM2)
export(.A.PCM3)
export(add.lead)
export(cfa.extract.itempars)
export(DescribeBy)
export(designMatrices)
export(designMatrices.mfr)
export(designMatrices.mfr2)
export(doparse)
export(EAPrel)
export(IRT.cv)
export(IRT.drawPV)
export(IRT.informationCurves)
export(IRT.linearCFA)
export(IRT.residuals)
export(IRT.RISE)
export(IRT.simulate)
export(IRT.threshold)
export(IRT.truescore)
export(IRT.WrightMap)
export(IRTLikelihood.cfa)
export(IRTLikelihood.ctt)
export(lavaanify.IRT)
export(msq.itemfit)
export(msq.itemfitWLE)
export(plotctt)
export(plotDevianceTAM)
 # export(prior_list_include)
export(require_namespace_msg)
export(Scale)
export(tam)
export(tam.cb)
export(tam.ctt)
export(tam.ctt2)
export(tam.ctt3)
export(tam.fa)
export(tam.fit)
export(tam.jml)
export(tam.jml.fit)
export(tam_jml_wle)
export(tam.jml2)
export(tam.latreg)
export(tam.linking)
export(tam.mml)
export(tam.mml.2pl)
export(tam.mml.3pl)
export(tam.mml.fit)
export(tam.mml.mfr)
export(tam.mml.wle)
export(tam.mml.wle2)
export(tam.modelfit)
export(tam.modelfit.args)
export(tam.modelfit.IRT)
export(tam.np)
export(tam.personfit)
export(tam.pv)
export(tam.pv.mcmc)
export(tam.Q3)
export(tam.se)
export(tam.threshold)
export(tam.wle)
export(tam_01_pattern)
export(tam_aggregate)
export(tam_args_CALL_search)
export(tam_assign_list_elements)
export(tam_AXsi_compute)
export(tam_AXsi_fit)
export(tam_bayesian_bootstrap)
export(tam_cov_wt)
export(tam_cor_wt)
export(tam_csink)
export(tam_difference_quotient)
export(tam_downcode)
export(tam_dmvnorm)
export(tam_ginv)
export(tam_ginv_scaled)
export(tam_interval_index)
export(tam_irf_3pl)
export(tam_latreg_se_quick)
export(tam_linking_2studies)
export(tam_matrix2)
export(tam_max_abs)
export(tam_max_abs_list)
export(tam_mml_se_quick)
export(tam_model_implied_means)
export(tam_NA_pattern)
export(tam_normalize_matrix_rows)
export(tam_normalize_vector)
export(tam_osink)
export(tam_outer)
export(tam_packageinfo)
export(tam_print_call)
export(tam_round_data_frame)
export(tam_round_data_frame_print)
export(tam_rowCumsums)
export(tam_remove_missings)
export(tam_rsessinfo)
export(tam_trim_increment)
export(tamaan)
export(tamaanify)
export(tampv2datalist)
export(weighted_kurtosis)
export(weighted_mean)
export(weighted_quantile)
export(weighted_sd)
export(weighted_skewness)
export(weighted_table)
export(weighted_var)
export(WLErel)


###########################################
############ S3 methods ###################

S3method(anova, tam)
S3method(anova, tam.latreg)
S3method(anova, tam.mml)
S3method(anova, tam.mml.3pl)
S3method(anova, tam.np)
S3method(anova, tamaan)
S3method(IRT.cv, tam.np)
S3method(IRT.data, tam.mml)
S3method(IRT.data, tam.mml.3pl)
S3method(IRT.data, tamaan)
S3method(IRT.expectedCounts, tam)
S3method(IRT.expectedCounts, tam.mml)
S3method(IRT.expectedCounts, tam.mml.3pl)
S3method(IRT.expectedCounts, tam.np)
S3method(IRT.expectedCounts, tamaan)
S3method(IRT.factor.scores, tam)
S3method(IRT.factor.scores, tam.mml)
S3method(IRT.factor.scores, tam.mml.3pl)
S3method(IRT.factor.scores, tamaan)
S3method(IRT.frequencies, tam.mml)
S3method(IRT.frequencies, tam.mml.3pl)
S3method(IRT.frequencies, tamaan)
S3method(IRT.informationCurves, tam.mml)
S3method(IRT.informationCurves, tam.mml.2pl)
S3method(IRT.informationCurves, tam.mml.3pl)
S3method(IRT.informationCurves, tam.mml.mfr)
S3method(IRT.irfprob, tam)
S3method(IRT.irfprob, tam.mml)
S3method(IRT.irfprob, tam.mml.3pl)
S3method(IRT.irfprob, tam.np)
S3method(IRT.irfprob, tamaan)
S3method(IRT.itemfit, tam.mml)
S3method(IRT.itemfit, tam.mml.2pl)
S3method(IRT.itemfit, tam.mml.3pl)
S3method(IRT.itemfit, tam.mml.mfr)
S3method(IRT.likelihood, tam)
S3method(IRT.likelihood, tam.latreg)
S3method(IRT.likelihood, tam.mml)
S3method(IRT.likelihood, tam.mml.3pl)
S3method(IRT.likelihood, tam.np)
S3method(IRT.likelihood, tamaan)
S3method(IRT.modelfit, tam.mml)
S3method(IRT.modelfit, tam.mml.3pl)
S3method(IRT.modelfit, tamaan)
S3method(IRT.posterior, tam)
S3method(IRT.posterior, tam.latreg)
S3method(IRT.posterior, tam.mml)
S3method(IRT.posterior, tam.mml.3pl)
S3method(IRT.posterior, tam.np)
S3method(IRT.posterior, tamaan)
S3method(IRT.residuals, tam.jml)
S3method(IRT.residuals, tam.mml)
S3method(IRT.residuals, tam.mml.2pl)
S3method(IRT.residuals, tam.mml.mfr)
S3method(IRT.simulate, tam.mml)
S3method(IRT.simulate, tam.mml.2pl)
S3method(IRT.simulate, tam.mml.3pl)
S3method(IRT.simulate, tam.mml.mfr)
S3method(IRT.WrightMap, IRT.threshold)
S3method(IRT.WrightMap, tam.mml)
S3method(IRT.WrightMap, tamaan)
S3method(logLik, tam)
S3method(logLik, tam.jml)
S3method(logLik, tam.latreg)
S3method(logLik, tam.mml)
S3method(logLik, tam.mml.3pl)
S3method(logLik, tam.np)
S3method(logLik, tamaan)
S3method(plot, IRT.informationCurves)
S3method(plot, tam)
S3method(plot, tam.jml)
S3method(plot, tam.mml)
S3method(plot, tam.pv.mcmc)
S3method(predict, tam.mml)
S3method(predict, tam.mml.3pl)
S3method(predict, tamaan)
S3method(print, designMatrices)
S3method(print, IRT.threshold)
S3method(print, tam)
S3method(print, tam_linking_2studies)
S3method(print, tam.latreg)
S3method(print, tam.linking)
S3method(print, tam.mml)
S3method(print, tam.mml.3pl)
S3method(print, tam.wle)
S3method(print, tamaan)
S3method(residuals, tam.jml)
S3method(residuals, tam.mml)
S3method(residuals, tam.mml.2pl)
S3method(residuals, tam.mml.mfr)
S3method(summary, IRT.linearCFA)
S3method(summary, IRT.modelfit.tam.mml)
S3method(summary, IRT.modelfit.tam.mml.3pl)
S3method(summary, IRT.modelfit.tamaan)
S3method(summary, msq.itemfit)
S3method(summary, msq.itemfitWLE)
S3method(summary, tam)
S3method(summary, tam.fit)
S3method(summary, tam.jml)
S3method(summary, tam.latreg)
S3method(summary, tam.linking)
S3method(summary, tam.mml)
S3method(summary, tam.mml.3pl)
S3method(summary, tam.modelfit)
S3method(summary, tam.np)
S3method(summary, tam.pv.mcmc)
S3method(summary, tam.Q3)
S3method(summary, tam.wle)
S3method(summary, tam_linking_2studies)
S3method(summary, tamaan)
