Data visualization in Stata
Comments? Check in below.
How to Easily Graph World Bank Indicators in Stata
Easily Plot World Bank Indicators in Stata by this tutorial
Subjective Well-Being in India
Supplementary Data, Graphics, and Related Information for GSA2021 Presentation on SWB in India
How to Reshape World Bank Data and Graph an Indicator in the Panel Dataset using Stata
Starting with my HealthEx-From-WorldBank.dta, let’s see how to reshape World Bank data for this indicator! You can follow along with me or download World-Bank-demo.do, which is what I’m walking through…
How to Graph Descriptives, Make Good-Looking Margins Plots, and Generally Produce Quality Data Visuals Entirely in Stata
How to produce the best graphs in Stata for your regression models and predictive margins.
5 ways how to use coefplot and marginsplot in Stata like an expert
Graph your models using Stata commands (margins and marginsplots) and some Ben Jann programs (coefplot and grstyle) while making use of Spost13 by Scott Long. How to use coefplot.
Dear Ms. Sanborne,
I have just discovered your very impressive pages on Stata graphics. Thank you.
It appears I need to buy a Stata upgrade (I’m on 14.2, it wants 16 to run your stuff), but that’s not a big deal. So at this point I could install the Erika setup file but not the India data file.
However, when I tried to follow further instructions on the page just to get started:
//This first example uses only stock Stata. If you copy-paste this code block into
//your do-file editor, you can run it on your system as-is.
*load the demo data file
use https://geterika.com/downloads/demo1, clear
I get what is apparently a Java runtime error [r(5100)]. I guess it’s possible that this dataset won’t load at all into Stata 14.2 (SE), but thought I would check and see if you have any insights. Thanks very much. I understand this is a free tutorial you have provided, so I am very grateful for your time and advice.
Thanks very much.
Mick
Hi Mick,
Glad you found my tutorials here. Let’s see if we can get you using my files now without paying for an upgraded Stata version (although I’m personally hoping for someone to sponsor my upgrade to v.17, but I digress).
Older Stata versions use Java to make the website connections to *load the demo data file as you helpfully copy-pasted in your comment. So! Let’s try to help your old Stata out by working around that java issue: Download my demo1.dta file. It’s a Stata dta file, which you should be able to open in your old Stata, just (apparently) not through the internet https-java connection that I had set it up for initially.
So download that file. Right click and save as, and download it to your computer. Then run the code from there.
Let me know if it works, okay?
Cheers,
Erika
Thanks so much! That worked like a charm! Now I have a lot of code to study! I really appreciate this resource. I took a 15 year hiatus from Stata, so it’s great to have some excellent sources for learning, especially on the graphics side (since I have for the moment made the choice not to simultaneously take on my current project and really learning R)!
Mick
I’m glad it worked, Mick. I’ll make a note on the site about this for anyone else with an older version of Stata.
Have fun with Stata,
E