Hello,
I am using Stata 15.1 to analyse household survey data. I want to simply count the number of HHs with people between 15 and 60 years of age. I can get the total number of people meeting this condition by using: count if dage>15 & dage<60. Thanks much.
Robert
Related Posts with count group var if a condition is met
How to Correct Data Errors in Longitudinal Format Data in Stata?I have a long format dataset with data error on the variables of kg5, k68, and k912 like this, clear…
Editing a spatial weighting matrix in neighbor list formI used spmat to create a spatial weighting matrix. I exported it in neighbor list form. The first ro…
Run Seemingly unrelated regression (SUREG) with one of the explanatory variable being latentHi All I have difficulty running an SUREG translog cost function where one of my independent variabl…
getting multiple variables information in one variable after importing txt fileAfter importing delimited using abcd.txt data this is the following output I'm getting on my data ed…
Adding baseline variables to a linear mixed modelHello everyone, I am really new to Stata, so my apologies if it's a simple question or if I misunde…
Subscribe to:
Post Comments (Atom)
0 Response to count group var if a condition is met
Post a Comment