Dear all,
I am using Stata 16, on mac. I used the following command in Stata: reg lnGDP lnagedpop lnpopulation WestCoast EastCoast, robust. All of the data is based on 50 states including D.C. over a span of three years (2016-2018). lnagedpop represents (population that is 65 and older). The dummy variable WestCoast = 1 if the U.S. state is located on the West Coast and 0 if not. Similarly, the dummy variable East Coast = 1 if the U.S. state is located on the East Coast and 0 if not. Midwest is my reference category. I am trying to create a graph based on the regression model I created. I am trying to make a bar graph with lnGDP on the yaxis and the dummy variables West Coast and East Coast on the x-axis. I used the command graph bar (mean) lnGDP, over(WestCoast) over(EastCoast), but my graph doesn't look right. Could someone help me fix my bar graph or maybe have an idea of another graph I could use instead so that it looks better?
Array
Thank you in advance for your help
Jason Browen
Related Posts with Help Fixing Bar Graph of GDP and Dummy Variables
Strange convergence properties using xtmlogitHi, I'm having some convergence troubles with xtmlogit (Stata 17). In trying to isolate exactly wha…
Egen or gen newvar to categorize the 50 states into Democrat, Republican, or Swing based on 2016 election resultsHi y'all I would be most grateful if anyone out there has written a simple code to categorize states…
egen or gen newvar to categorize the 50 states into Democrat, Republican, or Swing based on 2016 election resultsHi y'all I would be most grateful if anyone out there has written a simple code to categorize states…
Coding 0,1,2 for political states in 2016Hi y'all I would be most grateful if anyone out there has written a simple code to categorize states…
how to perform a multivariate multilevel model with Stata? hello statalist I have a problem I would like to analyze independently the reading and mathematical…
Subscribe to:
Post Comments (Atom)
0 Response to Help Fixing Bar Graph of GDP and Dummy Variables
Post a Comment