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
Interpreting Depend Variable in Percent (i.e. Growth Rate)Dear Stat List, I know this question has been raised before in various forms, however, I haven't be…
Extracting year from Date variableHi all, I want extract year from a date variable. No sure how to do this. Appreciate your assistanc…
Dropping leading zero observations within several variablesDear Statalisters, I need to drop the leading zeros of lots of separate variables. I have data like…
covid sandboxBeing locked up at home due to the COVID-19 crisis, I developed an interest in models for the spread…
MGARCH-DCC model with "could not calculate numerical derivatives -- discontinuous region with missing values encountered r(430)".Hi, I have an issue on the same error: "could not calculate numerical derivatives -- discontinuous r…
Subscribe to:
Post Comments (Atom)
0 Response to Combining two discrete variables into one percentage
Post a Comment