Hello, I am doing a job for my university and I need help, could you give it to me? I am new to stata, I would like to know how I can filter a variable by its third digit. Basically I need to create a new variable that is, for example, equal to 1 if the third digit of the variable X is equal to 9, equal to 2, if the third digit of the variable X is equal to 5, etc. Thank you.
PS: the variable on which I must filter is numeric and has a total of 5 digits.
Related Posts with Help please
xtscc: remove constant term from differenced estimationHello, I am estimating a first difference model of this kind: d.y= d.x1 + d.x2 + d_t*. where x1 and …
Help remarking duplicates in household surveyHello everyone, I have a simple question, which I have failed to figure out. How can I remark split …
Mixlogit with 'corr' option: convergence issueDear all, I am encountering a convergence problem with the 'mixlogit' command (written by Arne Risa…
How to measure time dependent reproductive number (Rt) in stataHello everyone. I'm trying to make epidemiological curve of COVID 19 in my region. I wonder if STATA…
How to locate Mata function called by lpoly?I am using Stata 14.0 with mac OS 10.15. I would like to produce a modified version of the command -…
Subscribe to:
Post Comments (Atom)
0 Response to Help please
Post a Comment