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?
Finding number of people of a given type for each groupI have a data set with 1000 observations. As an example, let's consider the following table: Grou…
Loops to switch between different sub-foldersWhat is wrong with commands in this Stata do-file? I am trying to open all batch files that are in s…
sfcross commandhi i am using stata and "sfcross command" for calculating profit efficiency with cross sectional dat…
Test for heteroscedasticity and autocorrelation after SUREG command (seemingly unrelated regression)Dear community, I have run a SUREG model and wanted to get some diagnositic tests such as test of h…
sfcross commandhi i am using stata and "sfcross command" for calculating profit efficiency with cross sectional dat…
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