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
Importing previously imputed data using mi importHello Stata Users, I have been trying to import previously imputed data (m=0, 1,2,…..20) using mi im…
Problem with nlsur commandDear Stata users, I am currently running the nlsur command to estimate a system of 2 equations usin…
Comparing predictions and regression fitted values between two regression models with an additional explanatory varaiableDear Statalisters, I am struggling with a task in which I want to investigate how an additional var…
How significance of stata pwcorr is calculated?When i run pwcorr, with the option sig, how stata test de significance of the correlation coeficient…
Scoring measures using STATAI have dataset that includes items measuring diagnostic criteria for personality disorders. For each…
Subscribe to:
Post Comments (Atom)
0 Response to Histogram misbehaving
Post a Comment