Good day.
I am trying to replicate the results of a journal article. I have a dataset from the survey and I was hoping for advice on the following:
1. Creating a new variable (highcrime) based on the data labels of the variable DISTID. I want to classify the districts into high crime and low crime and start my summary statistics from there.
2. My summary statistics would depend on the new variable as I have to generate mean and SD for both groups with the following variables: age, education, marital status, HH size etc.
I have a screenshot of the summary statistics I want to replicate
Array
Thank you in advance.
Related Posts with Can I create a new variable based on data labels
Diff-in-Diff with Waves?Hi Statalist Community! I have a question that has been puzzling me for weeks... and I decided to p…
Merge monthly to spell dataI have two datasets, in one I have an ID and a month. The second is spell data with ID, start_date, …
Testing significance of Swamy–Arora estimator of variance component?Dear Statalisters, if I run a regression of the following form: Code: xtreg y x, re sa Is there an…
SSC Install Failure: "nothing to install"Dear Statalist I recently reinstalled STATA 17 (before I was using STATA 15). Now I am facing proble…
Ranking A Variable on Tercile ( Top, Middle and Bottom)Greetings Everyone! Dear Statalist Members I want to divide my two variables from my data set into T…
Subscribe to:
Post Comments (Atom)
0 Response to Can I create a new variable based on data labels
Post a Comment