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
Combining forestplot graphs with subgroup analysisDear All, I am doing a meta-analysis using Stata 16. Was wondering if I can create a forestplot with…
Converting CRSP daily stock return to weekly returnHi all, A Stata newbie here. I am working with the daily stock return data from CRSP. I am required …
Error with rename using local macrosI importing many excel files with long variables names and lots of space. The truncated variable nam…
Additive interaction with conditional logistic regressionDear Statalist, I am analyzing data from a case-control study using conditional logistic regression…
Finding out proportions by groupsHello everyone, I'm struggling with one piece of code and am hoping I can get some help here. I hav…
Subscribe to:
Post Comments (Atom)
0 Response to Can I create a new variable based on data labels
Post a Comment