useDynLib(BiFactorCopulaGAMM,.registration = TRUE)
export(Sim2Cluster)
export(qcondNew)
export(qmargin)
export(param.dim)
export(bounds.cop)
export(bounds.mar)
export(link2parM)
export(margins0)
export(cpar2link)
export(EstBifactorCopulaGAMMFast)
export(EstBifactorTwoStep)
export(condMeanY_given_XV)
export(condMeanY_given_X)
export(condMeanY)
export(condMedianV_bifactor)
export(condMediansBifactor)
export(condMeanV_bifactor)
export(condMeansBifactor)
export(EstMargin1Factor)
importFrom("statmod","gauss.quad.prob")
importFrom("stats","nlm", "nlminb", "dpois","ppois","qpois", "dgeom","pgeom","qgeom", "dnbinom","pnbinom", "qnbinom",
           "pnorm", "qnorm", "pt", "qt","runif",
           "dweibull","pweibull","qweibull","qexp","qlogis","sd")
importFrom("CopulaGAMM","dcop","coplik","margins","linkCop","pcond","pcondjoe","pcondgal","pcondhr")

