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
spell-type data/survival time analysesDear stata list, I am running survival time analyses and my goal is to create a survival time varia…
meta regress - STATA16Dear all, I have a very general question about the meta regress command in Stata 16. I could not fin…
Simultaneous equation model with dynamic panelDear all: I am trying to estimate a four-equation simultaneous model, my dataset is a panel. Usuall…
Allocating cases to the class with the highest probabilty - Latent Class AnalysisHi Statalists, I am running a LCA with the gsem-command. My code is as follows: Code: gsem ( var…
Using -atjoint- in -margins- targeting only one at() condition when multiple at() are specifiedI am working on a logit model containing one interaction between a continuous and a dummy variable. …
Subscribe to:
Post Comments (Atom)
0 Response to Histogram misbehaving
Post a Comment