
## import:

import("zoo")
import("garchx")
import("numDeriv")
import("hier.part")

importFrom(

	"stats", "lm", "pchisq", "cor", "sd", "coef", "dnorm",
	"fitted", "logLik", "constrOptim", "nobs", "pnorm", "vcov",
	"quantile", "residuals", "rnorm", "runif", "predict", "optimHess"
)

importFrom(
	
	"utils", "toLatex", "tail"
)


export(

	# main functions: 
	"tv", "tvgarchSim", "tvgarchTest", "tvObj", "garchObj", "tvgarch", 
	"mtvgarchSim", "mtvgarch", 


	# extraction functions: 
	"coef.tvgarch", "fitted.tvgarch", "logLik.tvgarch", "nobs.tvgarch", 
	"predict.tvgarch", "print.tvgarch", "quantile.tvgarch", 
	"residuals.tvgarch", "toLatex.tvgarch", "vcov.tvgarch",
	"coef.mtvgarch", "fitted.mtvgarch", "logLik.mtvgarch", 
	"nobs.mtvgarch", "predict.mtvgarch", "print.mtvgarch", 
	"quantile.mtvgarch", "residuals.mtvgarch", "toLatex.mtvgarch",
	"vcov.mtvgarch"
)
    
# methods for class tvgarch:

S3method("coef", "tvgarch")
S3method("fitted", "tvgarch")
S3method("logLik", "tvgarch")
S3method("nobs", "tvgarch")
S3method("predict", "tvgarch")
S3method("print", "tvgarch")
S3method("quantile", "tvgarch")
S3method("residuals", "tvgarch")
S3method("toLatex", "tvgarch")
S3method("vcov", "tvgarch")

# methods for class mtvgarch:

S3method("coef", "mtvgarch")
S3method("fitted", "mtvgarch")
S3method("logLik", "mtvgarch")
S3method("nobs", "mtvgarch")
S3method("predict", "mtvgarch")
S3method("print", "mtvgarch")
S3method("quantile", "mtvgarch")
S3method("residuals", "mtvgarch")
S3method("toLatex", "mtvgarch")
S3method("vcov", "mtvgarch")