简单eviews命令(3)
发布时间:2021-06-05
发布时间:2021-06-05
全英文
programarguments:programargumentsarespecialstringvariablesthatarepassedtoyourprogramwhenyouruntheprogram.Argumentsallowyoutochangethevalueofstringvariableseverytimeyouruntheprogram.eq1.ls%0c%1
runregproglgdpm1performsaregressionofthevariableLGDP,onC,andM1
5Convertingseriestovectorsandviceversa
conversionfromaseriesintoavector:vector(10)vctr1=@convert(ser1) conversionofseriesintoamatrix:stom(lwage,vec1)
stom llsthevectorvec1withdatafromlwageAttention:missingvaluesareexcluded.Alternative:stomna(lwage,vec1)
conversionofamatrixtoaseriesorgroup:seriescol1seriescol2
groupgrp1col1col2mtos(mtrx1,grp1)
mtos llsthegroupgrp1withdatafrommtrx1
6Ifstatements
(seealso:help,controllingaprogram)if!a=10or%strng="yes"x=yelse
x=y+zendif
7Loops
forloops
vctr(1,1)=1
for!i=2to!ende
vctr(!i,1)=vctr(!i-1,1)*!inext
for!run=1to10
!anfang=(!runcounter-1)*100+1!ende=(!runcounter)*100
%sample=""+@str(!anfang)+""+@str(!ende)smpl%sample
下一篇:项目管理体系和组织架构