Command syntax in STATA
HTML-код
- Опубликовано: 22 авг 2024
- Course: STATA for Complete Beginners
100% Free.
To download exercises and course files access:
bit.ly/stataco...
Disclaimer: I used to work with Stata and sell this course online for US$19. Since I no longer work with Stata and will not update the course, I decided to help others by making the course available for free. If you enjoyed it, please leave your comment - I am always happy to know I could help someone out with my work :)
If you wish to say hello directly, you can also connect with me on LinkedIn on / souzalucasr
Thank you and happy Learning!
Lucas Reis
Great video, it was helpful.
Sir... Thank you so much for your early reply and i hope the same in future too...
But, sir when there is a simple command to list the numeric variable data with if condition ... why it is very complicated for string variable ???
lots of love......... Thanks again....
Sir, I have a dataset in stata which has a string variable having names i want to list only those names which starts or contains a particular characters. Please help me out with the command
My question in brief sir .. for example I have a dataset with two variables one string variable and another numeric variable i.e., name and age if i want to list people who are under age of 10 , the command is like list if age < 10 simply stata list out the data, but i want to list out the only people who's names are starting with "S" or a part of name with "ra"..
Usually in mysql we write this command select * from xxxx where name like "S%" or name like "%ran%"
Which is very simple... but i couldn't get.. Please help me out.. Thank You Sir
Hey, Sudhakar. There are multiple ways to solve this, and I'll give you some directions I think light be helpful but won't solve your specific problem. You'll have to find some sort of pattern in your strings and use string manipulation functions to reach your goal
For example, you can create a new binary variable based in a condition (e.g. string starts with letter 'A') and the filter through this column. Here's a related solution that might help out: www.stata.com/support/faqs/data-management/splitting-string-variable/