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{normality.test}}
#' 

normality_test <- function(object,...) {
	
	temp <- object@VAR
	if (class(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, ...))
	
}

Try the RMAWGEN package in your browser

Any scripts or data that you put into this service are public.

RMAWGEN documentation built on Dec. 12, 2019, 9:07 a.m.