I was plotting the simplest of histograms (observations by year) in Stata 14 and finding that the histogram plot was lumping the last year (2016) into the next-to-last year (2015). For example, the following code generates the tabulation and histogram below. What is going on here?
clear all
set obs 200
set seed 10
gen year = floor(runiform(2010,2017))
tab year
histogram year, start(2010) width(1)
Array
Array
Related Posts with Histogram misbehaving
Calculating the expected return of Eurostoxx 50 with STATA (Event Study)Hello everyone, currently I am working on an event study with the Eurostoxx 50 Index as underlying m…
Can I run a Pseudo-Poisson Maximum Likelihood in panel data when not using a Gravity Model? What is the STATA command?I want to run the Pseudo-Poisson Maximum Likelihood (PPML) in a panel data framework as my dependent…
color/line pattern for graph?Dear All, I found the following code Code: sysuse auto, clear regress price c.length##c.mpg est s…
How can I get return list of estat endogenous after a 2sls?Hello,everyone.I want to define results of extat endogenous to be a local.But I find that I can't ge…
Excluding leading zeros when exporting output to WORDHi folks, can you recommend a command that could help me export regression output without including …
Subscribe to:
Post Comments (Atom)
0 Response to Histogram misbehaving
Post a Comment