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
Create a duplicates drop logic working for missing valueHi Statalisters, I am working on my data cleaning and have such a problem. When I use duplicat…
Random and fixed effects logistic regressionHello everyone, I am working with a database that have information on a survey asking for mosquito …
svmachinesI am trying to run svmachines command and this syntax, when I run this in CV and Test predictions I …
Dropping duplicates based on another variableI have a large dataset with patient encounters, of which some patients may have had multiple encount…
Testing for Non-linearity in Fixed EffectsHello, I am running individual FE models where my dep variable (DV) is treated as continuous but it…
Subscribe to:
Post Comments (Atom)
0 Response to Help please
Post a Comment