Command Reference : Command Reference
  
Command Reference
Commands
The following list summarizes the EViews basic commands.
Commands for working with matrix objects are listed in “Matrix Language Reference”, and EViews programming expressions are described in “Programming Language Reference”.
A list of views and procedures available for each EViews object may be found in “Object View and Procedure Reference”.
Command Actions
do execute action without opening window.
freeze create view object.
preview preview objects contained in a database or workfile
print print view.
show show object window.
Global Commands
cd change default directory.
exit exit the EViews program.
help displays the documentation.
output redirect printer output.
param set parameter values.
rndseed set the seed of the random number generator.
smpl set the sample range.
Object Creation Commands
alpha alpha series.
coef coefficient vector.
data enter data from keyboard.
equation equation object.
factor factor analysis object.
frml numeric or alpha series object with a formula for auto-updating.
genr numeric or alpha series object.
graph graph object—create using a graph command or by merging existing graphs.
group group object.
link series or alpha link object.
logl likelihood object.
matrix matrix object.
model model object.
pool pool object.
rowvector rowvector object.
sample sample object.
scalar scalar object.
series numeric series.
spool spool object.
sspace sspace object.
string string object.
svector svector object.
sym sym object.
system system object.
table table object.
text text object.
userobj user object.
valmap valmap object.
var var estimation object.
vector vector object.
Object Container, Data, and File Commands
ccopy copy series from DRI database.
cfetch fetch series from DRI database.
clabel display DRI series description.
close close object, program, or workfile.
copy copy objects within and between workfiles, workfile pages, and databases.
db open or create a database.
dbcopy make copy of a database.
dbcreate create a new database.
dbdelete delete a database.
dbopen open a database.
dbpack pack a database.
dbrebuild rebuild a database.
dbrename rename a database.
delete delete objects from a workfile .
driconvert convert the entire DRI database to an EViews database.
expand expand workfile range.
fetch fetch objects from databases or databank files.
hconvert convert an entire Haver Analytics database to an EViews database.
hfetch fetch series from a Haver Analytics database.
hlabel obtain label from a Haver Analytics database.
import imports data from a foreign file or a previously saved workfile into the current default workfile.
importattr imports observation values stored inside one or more series in a second workfile page into the attribute fields of objects within the current workfile page.
importmat imports data from a foreign file into a matrix object in the current workfile
importtbl imports data from a foreign file into a table object in the current workfile.
load load a workfile.
logclear clear the log window corresponding to the program.
logmode set the log settings of specified message types.
logmsg add a line of text to the program log.
logsave save the program log to a text file.
open open a program or text (ASCII) file.
optsave save the current EViews global options settings .INI files into a directory.
optset replace the current EViews global options settings .INI files with ones based in a different directory.
pageappend append observations to workfile page.
pagecontract contract workfile page.
pagecopy copy contents of a workfile.
pagecreate create a workfile page.
pagedelete delete a workfile page.
pageload load one or more pages into a workfile from a workfile or a foreign data source.
pagerefresh refresh all links and auto-series in the active workfile page—primarily used to refresh links that use external database data.
pagerename rename a workfile page.
pagesave save page into a workfile or a foreign data source.
pageselect make specified page active.
pagesort sort the workfile.
pagestack reshape the workfile page by stacking observations.
pagestruct apply a workfile structure to the page.
pageunlink break links in all link objects and auto-updating series (formulae) in the active workfile page.
pageunstack reshape the workfile page by unstacking observations into multiple series.
range reset the workfile range.
read import data from a foreign disk file into series.
save save workfile to disk.
sort sort the workfile.
store store objects in database and databank files.
unlink break links and auto-updating series (formulae) in the specified series objects.
wfclose close the active workfile.
wfcompare compare the contents of the current workfile or page with the contents of a different workfile, page, or database.
wfcreate create a new workfile.
wfdetails change the details displayed in the current workfile window .
wfopen open workfile or foreign source data as a workfile.
wforder change the workfile page order
wfrefresh refresh all links and auto-series in the active workfile—primarily used to refresh links that use external database data.
wfsave save workfile to disk as a workfile or a foreign data source.
wfselect change active workfile page.
wfsnapshot takes a manual snapshot of the current workfile
wfstats display the workfile statistics and summary view.
wfunlink break links in all link objects and auto-updating series (formulae) in the active workfile.
wfuse activate a workfile.
workfile create or change active workfile.
write write series to a disk file.
Object Utility Commands
close close window of an object, program, or workfile.
copy copy objects.
delete delete objects.
rename rename object.
Object Assignment Commands
data enter data from keyboard.
frml assign formula for auto-updating to a numeric or alpha series object.
genr create numeric or alpha series object.
rndint assign random integer values to object.
rndseed set random number generator seed.
Graph Creation Commands
Graph creation is discussed in detail in “Graph Creation Command Summary”.
area area graph.
band area band graph.
bar bar graph.
boxplot boxplot graph.
distplot distribution graph.
dot dot plot graph.
errbar error bar graph.
hilo high-low(-open-close) graph.
line line-symbol graph.
mixed mixed type graph.
pie pie chart.
qqplot quantile-quantile graph.
scat scatterplot.
scatmat matrix of all pairwise scatterplots.
scatpair scatterplot pairs graph.
seasplot seasonal line graph.
spike spike graph.2017
xyarea XY area graph.
xybar XY bar graph.
xyline XY line graph.
xypair XY pairs graph.
Table Commands
setcell format and fill in a table cell.
setcolwidth set width of a table column.
setline place a horizontal line in table.
tabplace insert a table into another table.
Note that with the exception of tabplace, these commands are supported primarily for backward compatibility. There is a more extensive set of table procs for working with and customizing tables. See “Table Procs” .
Programming Commands
addin register an Add-in.
adduo register a user object.
commandcap send text to the command capture window.
exec execute a program.
logclear clears the log window of a program.
logclose closes one or more or all message log windows
logmode sets logging of specified messages.
logmsg adds a line of text to the program log.
logsave saves the program log to a text file.
open open a program file.
optimize find the solution to a user-defined optimization problem.
output redirects print output to objects or files.
poff turns off automatic printing in programs.
pon turns on automatic printing in programs.
program create a new program.
run run a program.
spawn spawn a new process.
statusline send message to the status line.
tic reset the timer.
toc display elapsed time (since timer reset) in seconds.
External Interface Commands
xclose close an open connection to an external application.
xget retrieve data from an external application into an EViews object.
xlog switch on or off the external application log inside EViews.
xoff turns off mode that sends all subsequent command lines to the external program
xon turns on mode that sends all subsequent command lines to the external program
xopen open a connection to an external application.
xpackage installs the specified R package in the current external R connection
xput send an EViews object to an external application.
xrun run a command in an external application.
Interactive Use Commands
The following commands have object command forms (e.g., Equation::arch). These commands are particularly suited for interactive command line use. In general, we recommend that you use the object forms of the commands.
arch estimate autoregressive conditional heteroskedasticity (ARCH and GARCH).
archtest LM test for the presence of ARCH in the residuals.
ardl least squares with autoregressive distributed lags
auto Breusch-Godfrey serial correlation Lagrange Multiplier (LM) test.
binary binary dependent variable models (includes probit, logit, gompit) models.
breakls least squares with breakpoints and breakpoint determination
cause pairwise Granger causality tests.
censored estimate censored and truncated regression (includes tobit) models.
chow Chow breakpoint and forecast tests for structural change.
coint cointegration test.
cointreg estimate cointegrating equation using FMOLS, CCR, or DOLS.
cor correlation matrix.
count count data modeling (includes poisson, negative binomial and quasi-maximum likelihood count models).
cov covariance matrix.
cross cross correlogram.
data enter data from keyboard.
facbreak factor breakpoint test for stability.
factest estimate a factor analysis model.
fit static forecast from an equation.
forecast dynamic forecast from an equation.
glm estimate a Generalized Linear Model (GLM).
gmm estimate an equation using generalized method of moments.
heckit estimate a selection equation using the Heckman ML or 2-step method.
hist histogram and descriptive statistics.
hpf Hodrick-Prescott filter.
liml estimate an equation using Limited Information Maximum Likelihood and K-class Estimation.
logit logit (binary) estimation.
ls equation using least squares or nonlinear least squares.
midas estimate an equation using Mixed Data Sampling (MIDAS) regression.
ordered ordinal dependent variable models (includes ordered probit, ordered logit, and ordered extreme value models).
probit probit (binary) estimation.
qreg estimate an equation using quantile regression.
reset Ramsey’s RESET test for functional form.
robustls robust regression (M-estimation, S-estimation and MM-estimation).
seas seasonal adjustment for quarterly and monthly time series.
smooth exponential smoothing.
solve solve a model.
stats descriptive statistics.
stepls estimate an equation using stepwise regression.
switchreg exogenous and Markov switching regression .
testadd likelihood ratio test for adding variables to equation.
testdrop likelihood ratio test for dropping variables from equation.
threshold threshold least squares, including threshold autoregression and smooth threshold autoregression .
tsls estimate an equation using two-stage least squares regression.
uroot unit root test.
varest specify and estimate a VAR or VEC.