Hi,
I am working on a confidential dataset from a virtual desktop which does not permit me to share any example data. However I am experiencing a problem. I am creating three different data files according to income levels (lowest, middle and top 33%), I am doing this by dropping the observations using the "drop" command. However, when I open the three dataset separately and try to obtain the summary statistics for another non-income variable, even though it has different means and standard deviations the min and max values are the same (exactly the same until the very last point in a dataset of 2.5million observations). Is this normal? Why is this happening? It makes me wonder whether I am creating my dataset correctly.
Since I cannot copy paste the code that I am running I shared a photo of my code. Any recommendations on what I might be doing wrong would be highly appreciated..
Array
Related Posts with Dropping variables does not change the min and max values in summary statistic why?
graph bar with both exclude0 and stack - any way to both stack and control the y axis range?Hello Statalist, I'd like to use graph bar with both its exclude0 and stack options. In other words…
Regression designHello, I'm trying to run a regression to test whether firms’ capital structure changes more during t…
When to winsorize the dataHello everyone, for the first time I am working with variables that are aggregated at the country-y…
Dummy-Variable for half yearly observationsHello, my dataset contains half yearly data from 2000 - 2018 which is written as 2000h1 or 2000h2. …
Model selection when we implement multiple imputation (MI) by MICEDear Stata team, I've carried out multiple imputation for 3 covariate variables and 5 outcome varia…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping variables does not change the min and max values in summary statistic why?
Post a Comment