Hello,
I have an education variable called educ and the variable has 5 items: 1-less than high school, 2-high school, 3-some college, 4-college, 5- advanced degree. However, i want only three items in this variable. i would like to combine 1 & 2 and drop 5. So i would have 1- high school or less, 2-some college, 3- college. How can i do this, without creating/generating three new variables?
Related Posts with Modifying a variable
Full calculation of R^2 when using ivreghdfe and reghdfeIn ivreghdfe and reghdfe, although it's fast to just absorb fixed effects, if I add them into absorb…
Help with nonstationarity and Cointegration (Phillips-Perron and Pedroni)Dear All, I am looking for some help as I am quite new to this. Any help or advice would be greatly…
How to use nonlinear least squares regression for a vector function?I am trying to fit the function: Revenuei(time) = A0/(1+exp(-A1*(time-A2))) + B*Costsi I have 5,000…
Indicator for more than one marital changeDear Stata Users, I have a panel dataset and I would like to identify marital changes (var marital)…
Export to single Excel file with multiple sheets (based on variables) Code: +------------------------------------------------------------------------------------------…
Subscribe to:
Post Comments (Atom)
0 Response to Modifying a variable
Post a Comment