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
Using the Code substr() for numbers of regionsHello Everybody! I need help with a code. I have numbers of german's regions (e.g. 1002,1051 to 160…
Creating Portfolios Sorted On Two VariablesHi Everyone, I have currency data that I want to initially sort on NFA(Net Foreign Assets) into two…
Time Series, Range specification "if": "tin": "range" commands.Dear All, Thanks in advance! I was running a Vector Autoregressive Model (VAR) with time-series dat…
Why the researchers add controls variables in Panel Data regression?Dear Statalist, I am wondering about the reasons behind adding more control variables in the panel …
quesiton about Stata programDear all, I want to write a program to transform World Development Indicator(WDI) to panel data.Also…
Subscribe to:
Post Comments (Atom)
0 Response to Can I create a new variable based on data labels
Post a Comment