Exporting results to EViews and STATA
eviews.Rd
Functions that facilitate the export of results to the commercial econometric softwares EViews and STATA, respectively.
Usage
eviews(object, file=NULL, print=TRUE, return=FALSE)
stata(object, file=NULL, print=TRUE, return=FALSE)
Author
Genaro Sucarrat, http://www.sucarrat.net/
Examples
##simulate random variates, estimate model:
y <- rnorm(30)
mX <- matrix(rnorm(30*2), 30, 2)
mymod <- arx(y, mc=TRUE, mxreg=mX)
##print EViews code:
eviews(mymod)
#> EViews code to estimate the model:
#> equation mymod.ls y c mxreg1 mxreg2
#> R code (example) to export the data of the model:
#> eviews(mymod, file='C:/Users/myname/Documents/getsdata.csv')
##print Stata code:
stata(mymod)
#> STATA code to estimate the model:
#> regress y mxreg1 mxreg2
#> R code (example) to export the data of the model:
#> stata(mymod, file='C:/Users/myname/Documents/getsdata.csv')