Hi,
I’m new to stata and am having trouble creating percentage variable (out of 100) for the percentage of population (in a particular context) eligible for Medicare . I have a variable (A)for the number of eligible people and another variable for sum of race and ethnicity. Which of the following two syntax should be used to create the new percentage variable (C) out of 100:
1. generate variable (C)== variable A/ variable B *100
2. generate variable (C)== variable A/((variable B)*100)
Or if I should use a totally different variable ? I’m not good in math as well:-)
Best,
Arif
0 Response to Generating Percentage Variables
Post a Comment