R/pp.R

Defines functions pp

Documented in pp

#' Conduct `PP` unit root test using `EViews` routines
#'
#' Use this function to conduct `PP` unit root test using `EViews` routines and report it in a table.
#' @inheritParams uroot

#' @return An EViews workfile
#'
#' @examples library(URooTab)
#' \donttest{
#' set.seed(1234)
#' x=rnorm(100)
#' y=cumsum(x)
#' z=cumsum(y)
#' dataFrame=data.frame(x,y,z)
#'
#' # Check if `EViews` is installed before running the tests
#'
#' eviewsExecutables=c('eviews','eviews10',paste0('Eviews',9:13,'_X',c(86,64)))
#' if(any(Sys.which(eviewsExecutables)!="")) pp(series=dataFrame,format="html",info="hq")
#'}
#' @family important functions
#' @keywords documentation
#' @export

pp <- function(series,info="sic",caption=NULL,format=kable_format(),...) {

uroot(series,test="pp",info=info,caption=caption,format=format,...)
}

Try the URooTab package in your browser

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

URooTab documentation built on Aug. 31, 2023, 1:09 a.m.