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?
Clarification on merge commandI am trying to merge two dataset- one dta file consist of 8576 unique observation and another dta fi…
create table from var valuesHello, I am using Stata 17 and would like to create a table showing the var values for each observa…
Creating a bar chart for a multivariate analysisHi, I've produced a bar chart which shows the mean of one variable (intolerance) for two other varia…
How to analyze data for repeated measures?Hi everyone Could you please share your recommendations, regarding the questions at the end of this …
Drop embedded observationsHello, I have a household panel dataset with some observations being fully captured by other observa…
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