Exporting results to EViews and STATA
Functions that facilitate the export of results to the commercial econometric softwares EViews and STATA, respectively.
eviews(object, file=NULL, print=TRUE, return=FALSE) stata(object, file=NULL, print=TRUE, return=FALSE)
object
: an arx
, gets
or isat
objectfile
: filename, i.e. the destination of the exported dataprint
: logical. If TRUE, then the estimation code in EViews (or STATA) is printedreturn
: logical. If TRUE, then a list is returnedEither printed text or a list
(if return=TRUE)
Genaro Sucarrat, http://www.sucarrat.net/
arx
, getsm
, getsv
, isat
##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) ##print Stata code: stata(mymod)
Useful links