Hi, I am new to Stata. In my case, I have a variable equal to 1, 2,3,4,5 and my task is to make the replace the variable equal to 1 if it original equal to 5, 2 to 4, 3 remain the same, 4 equal to 2, 5 equal to 1. How can I do it in Stata?
Related Posts with replace the value of variable
Conceptual/statistical question about supop().Hi Everyone, I am using several datasets that can be svyset. In each of these, I am interested in o…
replacing missing valuesHello, I have two variables, one is a code identifier for companies (permno), and another is return…
The overall age-standardised rate (ASR) with 95% CIHello, I used the STATA code to calculate age-standardised rate (ASR), but it did not give me the o…
Economic student that needs some help with date and year with panel dataHi everyone and happy thanksgiving! Its probably simple stuff but I'm having some difficulties so s…
ARDL - SR and LR ElasticitiesDear Stata Users, I have been trying to run an ARDL specification to get short and long-run price e…
Subscribe to:
Post Comments (Atom)
0 Response to replace the value of variable
Post a Comment