I'm trying to combine two discrete variables, in this case, cmarried - number of children from married households and csingle - number of children from non-married households. I would like to combine them to form a variable pmarried - percentage of children from a married household.
I'm a little bit clueless about stata and I can't figure this out. If anyone would be able to help it would be much appreciated. Thanks
Related Posts with Combining two discrete variables into one percentage
How to create a variable concatenating two variablesSuppose "address" is string and "year" is floating number. I would like to create something like reg…
Loop: Calculate Distance Based on Positional DataDear Statalist, I am currently using a dataset that includes positional data of individuals in diff…
Stata Econometrics Winter School and Stata Conference, Porto, 20-24 January 2020Stata Econometrics Winter School, Porto, Portugal 20-24th January 2020 The sixth annual Stata Econo…
If macro equals multiple values or rangeI need that Stata will do something if a global is equal to the value 7 or 8 (or in a range). I have…
Directional symmetryDear Statalist I saw many researchers decomposing the variables into positive and negative values. …
Subscribe to:
Post Comments (Atom)
0 Response to Combining two discrete variables into one percentage
Post a Comment