SlideShare a Scribd company logo
How To Code?
CEU - 2015 Winter
János Divényi
Jenö Pál
1 - Stay organized
Project
do_code.do
GretlV1.csv
gretl_1.gretl
stata.dta
Project
Data
Code
Output
Project
Data
appended_trade.dta
2003.csv
Code
2004.csv
…
Output
Project
Data
Code
append_data_files.do
analyse_export_import.do
Output
Project
Data
regressions.rtf
export_import.png
Output
Code
2 - Be clear
* use comments to explain
# use comments to create sections
egen x2 = count(x)
egen number_obs_x = count(x)
egen x2 = count(x)
egen number_obs_x = count(x)
3 - Don’t repeat
scatter export import if continent = 1
scatter export import if continent = 2
scatter export import if continent = 3
scatter export import if continent = 4
scatter export import if continent = 5
scatter export import if continent = 1, ///
xlabel("Export in USD") mlabel(country) …
scatter export import if continent = 2
scatter export import if continent = 3
scatter export import if continent = 4
scatter export import if continent = 5
foreach c of numlist 1/5 {
scatter export import if continent = `c’, ///
xlabel("Export in USD") mlabel(country) …
}
+1 – Search for help

More Related Content

PDF
Lec14-CS110 Computational Engineering
PDF
How to-code-r
DOCX
Binary addition using class concept in c++
PDF
Flood Filling Algorithm in C
DOCX
C++ programming example
PDF
C mcq practice test 1
DOCX
Dti2143 lab sheet 9
Lec14-CS110 Computational Engineering
How to-code-r
Binary addition using class concept in c++
Flood Filling Algorithm in C
C++ programming example
C mcq practice test 1
Dti2143 lab sheet 9

What's hot (20)

DOCX
cosc 281 hw2
PDF
C multiple choice questions and answers pdf
PDF
Bcsl 033 data and file structures lab s5-3
DOCX
New microsoft office word document (2)
PPTX
Mini project title prime number generator
PDF
Bcsl 033 data and file structures lab s2-2
PDF
C- Programming Assignment 3
PPTX
I o functions
DOCX
Bti1022 lab sheet 9 10
PDF
Factorial
DOCX
Write a program to perform translation.
PDF
Implement a queue using two stacks.
DOCX
Public class arithmetic operatordemo
PDF
SMU BCA SEM 1 FALL 2016 ASSIGNMENTS
DOCX
Spiral array
PDF
Monad and Algebraic Design in Functional Programming
PDF
Bcsl 033 data and file structures lab s5-2
PDF
Bcsl 033 data and file structures lab s2-3
PDF
Bcsl 033 data and file structures lab s3-3
PDF
Program in ‘C’ language to implement linear search using pointers
cosc 281 hw2
C multiple choice questions and answers pdf
Bcsl 033 data and file structures lab s5-3
New microsoft office word document (2)
Mini project title prime number generator
Bcsl 033 data and file structures lab s2-2
C- Programming Assignment 3
I o functions
Bti1022 lab sheet 9 10
Factorial
Write a program to perform translation.
Implement a queue using two stacks.
Public class arithmetic operatordemo
SMU BCA SEM 1 FALL 2016 ASSIGNMENTS
Spiral array
Monad and Algebraic Design in Functional Programming
Bcsl 033 data and file structures lab s5-2
Bcsl 033 data and file structures lab s2-3
Bcsl 033 data and file structures lab s3-3
Program in ‘C’ language to implement linear search using pointers
Ad

More from János Divényi (15)

PDF
Prediction versus Causality
PDF
Beyond Basic AB Testing
PDF
Slide5 bme adat_2016
PDF
Slide4 bme adat_2016
PDF
Slide3 bme adat_2016
PDF
Slide2 bme adat_2016
PDF
Slide1 bme adat_2016
PDF
R meetup-2016-02-09-pc
PDF
Slide5 bme adat_2015
PDF
Slide4 bme adat_2015
PDF
Slide3 bme adat_2015
PDF
Slide2 bme adat_2015
PDF
Slide1 bme adat_2015
PDF
Why code
PDF
Why code?
Prediction versus Causality
Beyond Basic AB Testing
Slide5 bme adat_2016
Slide4 bme adat_2016
Slide3 bme adat_2016
Slide2 bme adat_2016
Slide1 bme adat_2016
R meetup-2016-02-09-pc
Slide5 bme adat_2015
Slide4 bme adat_2015
Slide3 bme adat_2015
Slide2 bme adat_2015
Slide1 bme adat_2015
Why code
Why code?
Ad

Recently uploaded (20)

PDF
Anesthesia in Laparoscopic Surgery in India
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Cell Types and Its function , kingdom of life
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Institutional Correction lecture only . . .
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Lesson notes of climatology university.
PDF
Classroom Observation Tools for Teachers
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Pre independence Education in Inndia.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Microbial diseases, their pathogenesis and prophylaxis
Anesthesia in Laparoscopic Surgery in India
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Cell Types and Its function , kingdom of life
Computing-Curriculum for Schools in Ghana
Institutional Correction lecture only . . .
2.FourierTransform-ShortQuestionswithAnswers.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
human mycosis Human fungal infections are called human mycosis..pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Lesson notes of climatology university.
Classroom Observation Tools for Teachers
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Pre independence Education in Inndia.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Microbial diseases, their pathogenesis and prophylaxis

How to code?