Description Usage Arguments Details Value Examples
Returns a datatable and generates a .csv or .tex file with Unit Root test results.
| 1 2 | 
| df | Dataframe with series to test | 
| tests | List of tests to be performed, by default tests are  | 
| order | Maximum order of integration to test, usually noted as I(?). It can be  | 
| file | (Optional) Filename to be generated according to  | 
| format | (Optional) Format of the output table, can be  | 
Supports ADF, PP and KPSS unit root tests.
A dataframe with the test results and a file (optional).
| 1 2 3 4 5 6 7 8 9 10 11 12 | require(tseries)
data(USeconomic,package="tseries")
data <- data.frame( USeconomic ) 
dft1 <- urTable( data, tests=c("adf","pp","kpss"), file="US.csv" )
dft2 <- urTable( data, tests=c("pp","kpss"), order=2, file="US.tex", format="latex" )
# Even series with missing observations can be tested
bad <- data.frame( var1=rnorm(100), var2=cumsum(rnorm(100)) ) 
bad[seq(95,100),"var1"] <- bad[1,"var2"] <- bad[2,"var2"] <- NA
dft3 <- urTable( bad )
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.