importFrom("graphics", "contour", "legend", "lines", "plot", "points")
importFrom("stats", "cor", "dbeta", "dbinom", "dnorm", "integrate",
"nlm", "pbeta", "pnorm", "qbeta", "qnorm", "rbinom",
"rgamma", "rnorm", "runif", "sd", "uniroot", "var")

pcondbvn, pcondfrk, pcondcln, pcondcln90, pcondcln180, pcondcln270,

importFrom("stats","rmultinom","cor", "dbeta", "dbinom", "dnorm", "integrate",

export(copreg, density_joint , dpolicy_loss, dztp, z2theta ,loglik_joint ,mle_marginal,ppolicy_loss,pztp, rgam ,simulate_regression_data, ztp.glm ,
density_conditional, dgam ,D_u ,epolicy_loss,theta2z, mle_joint, pgam,predict.copreg ,qpolicy_loss, simulate_joint, vuongtest)

export(copreg, density_joint , dpolicy_loss, dztp, z2theta ,loglik_joint ,mle_marginal,ppolicy_loss,pztp, rgam ,simulate_regression_data, ztp.glm ,
density_conditional, dgam ,D_u ,epolicy_loss,theta2z, mle_joint, pgam,predict.copreg ,qpolicy_loss, simulate_joint, vuongtest)

export(copreg, density_joint , dpolicy_loss, dztp, z2theta ,loglik_joint ,mle_marginal,ppolicy_loss,pztp, rgam ,simulate_regression_data, ztp.glm ,
density_conditional, dgam ,D_u ,epolicy_loss,theta2z, mle_joint, pgam,predict.copreg ,qpolicy_loss, simulate_joint, vuongtest)

export(copreg, density_joint , dpolicy_loss, dztp, z2theta ,loglik_joint ,mle_marginal,ppolicy_loss,pztp, rgam ,simulate_regression_data, ztp.glm ,
density_conditional, dgam ,D_u ,epolicy_loss,theta2z, mle_joint, pgam,predict.copreg ,qpolicy_loss, simulate_joint, vuongtest)

importFrom("stats", "glm", "lm", "pbinom", "pnorm", "poisson", "ppois",

importFrom("graphics", "abline", "axis", "box", "layout", "legend",
"locator", "mtext", "par", "plot", "rect", "text")
importFrom("stats", "IQR", "density", "median", "sd")

importFrom('stats', 'fisher.test', 'p.adjust', 'na.omit')  ## we use na.omit from data.table but this stops check complaining
importFrom('graphics', 'par', 'rect', 'strwidth', 'axis', 'image', 'abline', 'arrows', 'plot', 'points')

export(plot.Explore.WS.Corr, plot.WS.Corr.Mixed, plot.WS.Corr.Mixed.SAS, summary.Explore.WS.Corr, summary.Fract.Poly,