9 views

Uploaded by Hi Ki

testing

- Planning Tools and Techniques
- Forecasting
- Study Materials Planning 2011 B
- SET SOALAN ADDITIONAL MATHEMATICS
- buku
- Inquirer 1982
- Forecasting
- presentationonregression-090929133014-phpapp01
- Halka Leszczynska What does the CPI measure - final (2).pdf
- Actix Analyzer Getting Started Guide October 2009
- anatomy of a lab synopsis with rubric ekb
- K2BI 2006 Page
- Tziralis PhD Presentation
- Protocol Checklist
- j 0391074078
- Accelerated Lab Rubric
- 203_325_180_1
- EIA - Methods
- main page 3
- qs06011105

You are on page 1of 10

Windows Interface

Windows

Command, Results,

Pulldown Menu

File, Edit, Data, , Help

Operation

Interactive Mode

Command Menu

Batch Mode

do files

Working Directory

Stata Dataset

Datasets installed with Stata Datasets from Stata Web site Datasets from courses using Stata

Text Data

Type your own data Import from Excel, Notebook, GAUSS,

Stata Dataset

sp500.dta Interactive mode Data Convertion: Dataset to Text Data Analysis Graphics

Text Data

gasoline.txt Batch Mode: do files Data Convertion: Text to Dataset Data Analysis Graphics

demo1.do

* Demo of do file #1 clear sysuse sp500 describe summarize generate volatility=high-low generate lnvolume=ln(volume) generate time=_n graph twoway line close time more graph twoway scatter change volatility correlate change volatility regress change volatility lnvolume generate change1=change[_n-1] regress change change1 volatility lnvolume

demo2.do

* Demo of do file #2 clear infile year gasexp pop gasp income pnc puc ppt pd pn ps /// using "c:\course09\ec570\data\gasoline.txt" label data "Greene [2008], Table F2.2: The U.S. Gasoline Market" label variable year "Year, 1953-2004" label variable gasexp "Total U.S. gasoline expenditure" label variable pop "U.S. total population in thousands" label variable gasp "Price index for gasoline" label variable income "Per capita disposable income" label variable pnc "Price index for new cars" label variable puc "Price index for used cars" label variable ppt "Price index for public transportation" label variable pd "Aggregate price index for consumer durables" label variable pn "Aggregate price index for consumer nondurables" label variable ps "Aggregate price index for consumer services" describe summarize * save it as a Stata dataset save "c:\course09\ec570\data\gasoline", replace /* generate g=ln(gasexp/pop) // log-per-capita gas consumption generate y=ln(income/pop) // log-per-capita income generate pg=ln(gasp) // log price of gas generate pnew=ln(pnc) // log price of new cars generate pused=ln(puc) // log price of used cars regress g y pg pnew pused */

demo3.do

* Demo of do file #3 set more off clear //use "c:\course09\ec570\data\gasoline" use http://www.econ.pdx.edu/faculty/KPL/ec570/data/gasoline describe summarize generate g=ln(gasexp/pop) // log-per-capita gas consumption generate y=ln(income/pop) // log-per-capita income generate pg=ln(gasp) // log price of gas generate pnew=ln(pnc) // log price of new cars generate pused=ln(puc) // log price of used cars regress g y pg pnew pused // dynamic model with lagged variables generate g1=g[_n-1] regress g y pg pnew pused g1 // hypothesis testing test pnew pused test pnew+pused=0 // prediction predict e, residual predict ghat, xb twoway scatter e ghat // structural break

Must-Know Commands

System

clear exit log set # delimit net search help

Data Management

use Infile, infix list describe keep, drop generate, replace, rename save, outfile

Must-Know Commands

Data Analysis

summarize correlate graph

twoway, scatter, hist

Statistical Analysis

regress predict test dwstat hettest

- Planning Tools and TechniquesUploaded byjme_pescasio
- ForecastingUploaded byAdeel Sheikh
- Study Materials Planning 2011 BUploaded byrohan_jangid8
- SET SOALAN ADDITIONAL MATHEMATICSUploaded bysszma
- bukuUploaded byAidil Darsam
- Inquirer 1982Uploaded byGuru Khb Pbl
- ForecastingUploaded byPrakash Mathure
- presentationonregression-090929133014-phpapp01Uploaded byMazhar Mushtaq
- Halka Leszczynska What does the CPI measure - final (2).pdfUploaded byGianni Elia
- Actix Analyzer Getting Started Guide October 2009Uploaded byEquipe Simpson
- anatomy of a lab synopsis with rubric ekbUploaded byapi-446887131
- K2BI 2006 PageUploaded byAteef Hatifa
- Tziralis PhD PresentationUploaded byGeorge Tziralis
- Protocol ChecklistUploaded byCedricLuisSenties
- j 0391074078Uploaded byInternational Journal of computational Engineering research (IJCER)
- Accelerated Lab RubricUploaded byKevin Sheng
- 203_325_180_1Uploaded byUmer Farooq
- EIA - MethodsUploaded byb_manthan
- main page 3Uploaded byRohitParjapat
- qs06011105Uploaded byDesyerie Bonifacio
- v950ManualUploaded byPhil Miller
- om reportUploaded byLalima Bassi
- This Week in Earnings 18Q3 | Nov. 23Uploaded byAnonymous wcrCfeAc
- 009d1correlationUploaded bylittle2102
- mcom 3 sem.docxUploaded byAnonymous WzQqLiT
- Metodo de Grey y Otros MasUploaded bylaionel callisaya
- Chapter IIUploaded byIntan Purnamasari
- 1-s2.0-S0148906299000509-mainUploaded bySunny Sourav
- AnalystUploaded byapi-77506311
- putler feb 6.docxUploaded byRajesh

- Test Bank Psychology an Introduction 11th Edition by LaheyUploaded bya313267656
- Alhambra versión imprimibleUploaded bytintoreprofe
- Capitalization RulesUploaded byPluffi
- Microbiologia Harvey 2a EdicionUploaded byNaty Travieso Rocha
- Muet Speaking 2014Uploaded byAnisZaharahMasrom
- MANSCI Operations & QualityUploaded byStrini Naidoo
- Lebin v MirasolUploaded byEunice Saavedra
- Dept ProfileUploaded bydvenkannababu_102579
- 7.2 Algebra IUploaded byguanajuato_christopher
- FEM Stress ConceptsUploaded byMuhammad Faris
- Maths D (Fast Track) Year 10 (2 YEARS)Uploaded byYenny Tiga
- g9se_j198-e1_2_5_csm1040781.pdfUploaded byrocking0
- Building Your DPIA/PIA Program: Tips & Case Studies | TrustArc WebinarUploaded byTrustArc
- How to Pass Your 1z0-160 Exam in First AttemptUploaded bydumpspedia
- Balaji Wafers Pvt. Ltd. T. Y. B.B.a.Uploaded bySam Chitroda
- Psy AdditionalUploaded byChuckie Ross Razo
- Unto Us A CHild Is BornUploaded byRoman New
- Measure Oracle Database Server Performance With VmstatUploaded bySrinivas Rao Kancharla
- hw9Uploaded bysean888
- Liberty Newspost Nov-02-10Uploaded byLiberty Newspost Corp.
- Decline in Soil BiodiversityUploaded bychanel05
- Sale and Agreement to SellUploaded byTejas Desai
- Challenges to modelling heave in expansive soils.pdfUploaded byAgus S Muntohar
- Definition of Task - NunanUploaded byLingRenee
- SITXCOM401 Manage Conflict Student Guide WMUploaded bykul1990
- Map Scales Fs01502Uploaded byVictorJah Lion Contreras
- Daniel C. Cohn-Sherbok A Traditional Quest Essays in Honor of Louis Jacobs JSOT Supplement 1991.pdfUploaded byVeteris Testamenti Lector
- Vector CalculusUploaded byMohammad Mofeez Alam
- Lesson 9 (Projectile Motion - Projection at an Angle 2)Uploaded byRaquel Lizardo
- Interview QuestionsUploaded byRui Chen