Eviews Commands
Eviews Commands
data as numbers
Graphics
z.B. histogram, mean, etc.
autocorrelationen
Generation/Transformation of series:
Generate / x = 0
generates a series with zeros
Generate / pi = (pc pc(-1))/pc(-1)*100
Generates the inflation rate in % based on prices pc
Generate / x = log(y)
taking logs
Generate / dlx = dlog(x)
dlx = log(x) log(x(-1))
Growth rate in continuous time
Generate / y = exp(x)
exp(x)
as command: series x=0
Trend variable (linear):
Generate / t = @trend
Standard normal distributed realizations:
Generate / x = nrnd
Lags, lagged variables, taking differences:
Generate / x1 = x(-1)
x1(t) = x(t-1), Lag 1 of x
Generate / dx = d(x)
dx(t) = x(t) x(t-1) = (1-B)x(t)
first difference
Generate / d2x = d(x,2)
d2x(t) = dx(t) dx(t-1) = (1-B)^(2)x(t)
taking first differences twice
Generate / d12x = d(x,0,12)
d12x(t) = x(t) - x(t-12) = [1-B^(12)]x(t)
seasonal difference for monthly data
Generate d12_1x = d(x,1,12)
d12_1x(t) = (1-B)[1-B^(12)]x(t)
Geneartion of dummy variables:
seasonal dummies: s=1,2,3,...
Generate / ds = @seas(s)
as command: series ds = @seas(s)
Generate / d1 = 0 and manually in View/Spreadsheet
use Edit+/p-value for x of a test statistic as command:
(N-, t-,
scalar p
scalar p
scalar p
scalar p
scalar p
Chi2-, F-distribution)
= 1 - @cnorm(x)
= 1 - @cnorm(abs(x))*2
= 1 - @ctdist(x,df)
= 1 - @cchisq(x,df)
= 1 - @cfdist(x,df1,df2)
1-sided, right
2-sided
1-sided, right
as command: ls y c x1 x2
with storage in equation eq3: eq3.ls y c x1 x2
ARMA Model:
Option: LS
Model specification:
y c AR(1) AR(2) MA(1) MA(2) MA(3)