Hi all.
I am using educational attainment data and I have data on female tertiary enrolment(%), male tertiary enrolment(%) and overall tertiary enrolment(%). I want to create a ratio variable of female and male tertiary enrolment rate. How will I generate this tertiary enrolment ratio variable as both independent variables male and female enrolment contains 0 values as well in some cases. I tried to generate the variable in a simple way which is
gen tertiary ratio = female enrolment/male enrolment. But I don't know whether its a correct way. Help is required.
ThankYou
Related Posts with Creating ratio variable from two independent variables for panel data
Does mediator make the relationship between the independent and dependent variables stronger?If we believe a variable is a mediator, does it make the relationship between the independent variab…
LMDI error messageHas anyone used the LMDI code in STATA? I have been trying to use the LMDI syntax to decompose water…
Linear restrictions in coefficients after using xtmg panel data commadDear collegues, I have estimated a mean group (Pesaran and Smith 1995) panel data model with "xtmg"…
"substr" does not work for the string with "_"Hi, I am trying to generate two scalars to store numbers from the string "crmlaw_2014_2018" and "te…
Err Msg: depvar may not be a factor variableDear Statalist, I have a question about the error message in the title. It's really mysterious to m…
Subscribe to:
Post Comments (Atom)
0 Response to Creating ratio variable from two independent variables for panel data
Post a Comment