Hi all,
I am trying to standardise 'ethnicity' variable into four categories:
1. white
2. black
3. asian
4. other
I have currently got:
1. white
2. black
3. indian
4. pkstni, bngldeshi
5. other
6. na, refused
I want to put "indian, pkstni, bngldeshi" into "asian" and also "na,refused" in "other".
I have been recommended to create a new variable and then proceed. Please help.
Related Posts with Standardising variables ***Stata newbie***
Multiple imputation convergence not achievedHi all, I'm trying to perform chained multiple imputations but get an error message about convergen…
mediation effect and endogenousDear sir or madam: But I have some question about the mediation effect and endogenous: Is there a tr…
Inverse Probability Weighing for Multiple TreatmentsHi all, I am trying to compute inverse probability weight for multiple treatments. But I am struggl…
How to run the Stata code for specific number of observations in panel data?Because when running the code below, it seems that Stata takes a long time to run it, so I want to t…
What is the c.operator in reg and set emptycells ?Today when I run this regression Code: did2s l_homicide [aweight=popwt], first_stage(i.sid i.year)…
Subscribe to:
Post Comments (Atom)
0 Response to Standardising variables ***Stata newbie***
Post a Comment