R/normality_test.varest2.R

Defines functions normality_test

Documented in normality_test

NULL
#'
#'\code{normality.test} method for \code{varest2} object
#'
#' @param object a \code{varest2} object
#' @param ...   passed arguments
#'
#' @export
#'
#' @seealso \code{\link[vars]{normality.test}}
#'

normality_test <- function(object,...) {

	temp <- object@VAR
	if (inherits(object,"GPCAvarest2")) {
		if (length(object@GPCA_residuals)>0) {
			temp <- VAR_mod(object@GPCA_residuals$final_results,p=0)
		}
	}
	### class(temp) <- "varest"
	return(normality.test(temp, ...))

}
ecor/RMAWGEN documentation built on June 12, 2025, 8:05 a.m.