Learn R Programming

gets (version 0.9)

eviews: Exporting results to EViews and Stata

Description

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)

Arguments

object
an arx, gets or isat object
file
filename, i.e. the destination of the exported data
print
logical. If TRUE, then the estimation code in EViews (or Stata) is printed
return
logical. If TRUE, then a list is returned

Value

See Also

arx, getsm, getsv, isat

Examples

Run this code
##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)

Run the code above in your browser using DataLab