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
problem with parsing numeric and string arguments in ado filehello, I want to write an ado file in which I have one numeric argument, one string argument, and on…
Addplot ) required error r(100);Hello world I'm working on a code to make a graph, and it keeps getting in trouble. It`s a panel d…
Help with matchitHello, I'm trying to merge two datasets with -matchit- based on venture names and want to keep addi…
Generating a variable using several other variablesI have a variable in my dataset called fbnone, representing if respondents to a survey have no fring…
Error downloading updates - error extracting contentsHi all, I tried to update Stata (update all), and Stata issued an error message. error extracting …
Subscribe to:
Post Comments (Atom)
0 Response to Combining two discrete variables into one percentage
Post a Comment