Dear all,
I am using Stata 16, on mac. I have taken a snapshot of dataset I am working with.
Array
I want to create a model that includes on the x axis how many participants in the study were age 15, how many were age 16 and so on over the years 1998-2009. I just would like to count for each of the column years how many participants overall were age 15, how many participants were age 16 and so on between 1997-2009 but I am not sure how to go about writing the Stata code for this? I also do not want to include any of the observations in the dataset that are -5 in my x-axis because those participants did not want to be in the study any longer. Is there a way to write a Stata code that bypasses certain observations that I do not want to include in my analysis such as the indicator -5?
Thank you in advance for your help
Jason Browen
Related Posts with Count Number of Each Age Observation Across Years and Not Include Certain Data Observations
graph the predicted probabilityHi guys! I am totally new with statistics, just started to learn using Stata. On the last class we …
Stata freezing forever after -glm- command*Hi, I am running a simple glm model with -link(log)- function, and it makes both Stata 14 and 15 ir…
Quickest Way to convert Int/Flot to StringHello there, what would be the easiest and quickest way to convert int or float to string from the c…
How to use psacalc command with the option mcontrol so that to take fixed-effects as unrelated controls ?Hello Dear All, I am trying to use psacalc command in Stata to build an argument for omitted variab…
Modeling my own line in OLS / scatter graph for residual values?Hello everyone, I was just wondering whether it is possible to (1) model my own "pseudo-regress line…
Subscribe to:
Post Comments (Atom)
0 Response to Count Number of Each Age Observation Across Years and Not Include Certain Data Observations
Post a Comment