On this page I have added a quite uncurated collection of links and resources that I have picked up during my time in academia. They serve as a sort of library for me, and I hope someone else will find it useful.
CODE
Python
- Set up python in vscode https://www.youtube.com/watch?v=06I63_p-2A4
- Genomics: https://github.com/JonJala/mtag
- Scientific Python: https://www.labri.fr/perso/nrougier/from-python-to-numpy/
- 100 exercises in NumPy https://github.com/rougier/numpy-100
- https://levelup.gitconnected.com/5-powerful-python-one-liners-you-should-know-469b9c4737c7
- Network analysis https://networkx.org/documentation/stable/index.html
- 50 one-liners in python https://github.com/Allwin12/python-one-liners/blob/master/README.md
- https://towardsdatascience.com/using-mongo-databases-in-python-e93bc3b6ff5f
- https://www.math-econ-code.org/
- A good introduction to a lot of python stuff. Nice “comming from STATA” cheat sheet.
- https://realpython.com/storing-images-in-python/
- Reading csv files fast
GIS with python
- Geopandas is the best! https://geopandas.org/
- https://www.earthdatascience.org/courses/scientists-guide-to-plotting-data-in-python/plot-spatial-data/customize-vector-plots/python-customize-map-legends-geopandas/
- GIS in python https://autogis-site.readthedocs.io/en/latest/index.html
- https://gdal.org/api/python_gotchas.html
- https://martinfleischmann.net/blog/
Webscraping with Python
- https://iqss.github.io/dss-webscrape/
- https://python.plainenglish.io/parallel-web-scraping-and-api-connection-a-way-to-save-lots-of-time-part-i-i-python-d23f9fc258ca
Packaging
ML
POSTGIS
Data Visualization
- Fundamentals of Data Visualization: https://clauswilke.com/dataviz/
- In particular cap 20 https://clauswilke.com/dataviz/redundant-coding.html
- https://github.com/rougier/scientific-visualization-book
- Matplotlib CheatSheet https://github.com/rougier/matplotlib-cheatsheet
- https://www.jstor.org/stable/43193723?seq=6##page_scan_tab_contents
Maps
- https://carto.com/blog/proportional-symbol-maps/
- https://towardsdatascience.com/introducing-mapscaler-42a57e68aead
STATA
- https://friosavila.github.io/playingwithstata/index.html
- https://www.stata.com/meeting/baltimore17/slides/Baltimore17_Correia.pdf
- Stata Markdown https://data.princeton.edu/stata/markdown
- Fuzzy string matching https://github.com/kkranker/dtalink
- Project management https://github.com/klfranco/project-stata-explainer
- https://julianreif.com/guide/
- Working with big data
- Plotting regression coefs
Markdown
- Markdown Guide
- https://solomon.io/better-markdown-visual-studio-code/
Text analysis
- Using Python https://www.cambridge.org/core/elements/text-analysis-in-python-for-social-scientists/BFAB0A3604C7E29F6198EA2F7941DFF3
- Narrative identification: https://github.com/relatio-nlp/relatio
OCR
- https://github.com/Layout-Parser/layout-parser
- https://towardsdatascience.com/how-to-extract-the-text-from-pdfs-using-python-and-the-google-cloud-vision-api-7a0a798adc13
- https://www.danvk.org/2015/01/07/finding-blocks-of-text-in-an-image-using-python-opencv-and-numpy.html
- https://theailearner.com/tag/cv2-minarearect/
- https://tesseract-ocr.github.io/tessdoc/ImproveQuality
- https://nanonets.com/blog/ocr-with-tesseract/
R
LaTeX
- How to make nice slides
- Beamer template https://github.com/kylebutts/templates/tree/master/latex-slides
- STATA -> LaTeX https://medium.com/the-stata-guide/the-stata-to-latex-guide-6e7ed5622856
Personal webpage
- This guy know a lot about computers Moncef Belyamani
- Write Latex on your webpage: https://medium.com/coffee-in-a-klein-bottle/creating-a-mathematics-blog-with-jekyll-78cdee0339f3
- https://flask.palletsprojects.com/en/2.0.x/
- https://www.pythonanywhere.com/
DATA
Political
- https://data.ipu.org/content/parline-global-data-national-parliaments
- Comparative constitutions https://comparativeconstitutionsproject.org/download-data/
- https://www.v-dem.net/en/our-work/historical-v-dem/
- Shapefiles for subdivisions of each country: GADM.
Climate/weather
- Lightning http://wwlln.net
Events
Macro data
- Finansiering av staten: statliga skatteintäkter från 1800 till 2012
- Swedish Macro Data
- Maddison project for World economic development
Maps
- Historical maps https://www.euratlas.net/history/index.html
- Base maps https://www.naturalearthdata.com
Population
- Impressive database that can give 100x100m estimations for the whole world using different methods. Good, transparent and free! https://www.worldpop.org
Misc
- Word similarities etc https://wordnet.princeton.edu
- Computer vision https://www.image-net.org/about.php
- Document analysis https://doc-analysis.github.io/docbank-page/index.html
- Table recognition https://doc-analysis.github.io/tablebank-page/index.html
ECONOMETRICS
General
Instrumental variable
Woolridge 10 things you need to know:
- Law of Iterated Expectations, Law of total variance.
- Linearity of expectations, variance of a sum.
- Jensen’s inequality, Chebyshev’s inequality.
- Linear projections and its properties.
- Weak law of large numbers, Central Limit Theorem.
- Slustky’s theorem, Continious convergence theorem, asymptotic equivalence lemma.
- Big Op, Little Op and the algebra of them.
- Delta Method.
- Frisch-Waugh partialling out.
- For PD matrices \(A\) and \(B\), \(A-B\) is PSD iff \(B^{-1}-A^{-1}\) is PSD.
Panel data and DID
- https://twitter.com/davidfromterra/status/1390649644418584579?s=20
- https://taylorjwright.github.io/did-reading-group/
- https://hhsievertsen.shinyapps.io/twowayfedecomp/
- https://github.com/hhsievertsen/twowayfedecomp
- https://github.com/asjadnaqvi/DiD
- https://bcallaway11.github.io/did/articles/TWFE.html
- Wooldrige TWFE lecture
- Wooldrige Stata conference code and slides
- Slides on negative weights problens in regression
Regresson discountinuity
- R and stata packages https://rdpackages.github.io
- Honest RD https://github.com/kolesarm/RDHonest
Syntetic control
Specification curve
PRESENTATIONS
Feedback, mindfigures
- Giving a presentation is like archery with only one arrow - you only get one shot, ONLY focus on the things that will make you hit the goal.
- Do not “warm up” in front of the crowd - IN MEDIAS RES!
- ALWAYS place your research questions front and center
- Remember you are there to present - to convey some interesting fact about the world (like a purple truck), not to have a Socratic dialogue about the world.
- Use Backwards induction
- Think carefully about what you’d like two participants in the audience would say to a non-participating colleagues at lunch the day after.
- It is not about showing off! So do not even try.
- Trim away irrelevant and/or redundant details
Links
- On academic talks http://bactra.org/weblog/900.html
- How to give an applied micro talk https://www.brown.edu/Research/Shapiro/pdfs/applied_micro_slides.pdf
DOING RESEARCH
All encompassing
Starting a project
- Write a fake abstract
Literatrue review
- Connected papers https://www.connectedpapers.com
- https://twitter.com/shyamkraman/status/1497080453513105409?s=20&t=2jWrMDphkxM-gnfU2WV2_w
Writing
- https://twitter.com/rodriguesjm6?s=11
- https://www.econscribe.org/podcast/2021/11/8/on-research-writing-with-professor-david-weil
GENERAL (uncategorized)
Econ related
Job market
Genetics in social science
Human origins
- Webbinar from DySoc
Economic history
- https://www.nuffield.ox.ac.uk/people/sites/allen-research-pages/
- https://www.jaredcrubin.com/teaching/european-economic-history-slides
Cultural evolution
Blogs
- Marginal Revolution
- Andrew Gellman
- Broadstreet - historical political economics
Great blog posts
- https://broadstreet.blog/2021/06/02/state-power-and-the-power-law/
- https://vincebuffalo.com/blog/2021/09/01/why-do-species-get-a-thin-slice-of-p-revisiting-lewontins-paradox-of-variation.html