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
convert string yyyy-mm-dd hh:mm:ss to %td formatHello, As the title of this question suggests, I have a set of data with variable "Qtm" in string f…
pweight with melogitI have a Panel dataset with 260,647 data points consisting of 260,647 Respondents within 43,400 hous…
Formal tests of volatility in STATA17Dear Statlist: I have longitudinal data on employee data across multiple years and organizations. I…
Color changes with PNG export.On the left, we have the graph I actually want (ignore please the slight transparency difference bet…
Generating the "opposing" variable in a long datasetHi all, I am using Stata 17/SE on Mac and I am having trouble generating a variable using another o…
Subscribe to:
Post Comments (Atom)
0 Response to Combining two discrete variables into one percentage
Post a Comment