Save as you go. If the dataset is very big, however, it may not be practical to stare at all the values a variable can take. Please try again later. Basically, the value label sits on top of the code, so that when you browse, you see what the code means rather than what it is. Hot Network Questions. Vicky's Blog Recommended for you. Nick Cox Nick Cox
But you can do this, even though Michael's main point remains spot on. You just need to use a mechanism for interpreting your input as labels. It is not completely clear how you will get around typing the full list in the order you want them to get the new sorting variable created. I would. Hi Joseph and Nick, Thanks to both of you for your ideas as to how to sort by a strin variable.
How do I sort values of string variable based on the order of frequencies Statalist
Joseph, your idea is a neat trick to get around the.
The interactive transcript could not be loaded. Like this video? Is it plausible that there really was a 5.
Always keep a log. Ideally, you would like to look at livein the new variable based on marital status and dhhgms the marital status variable.
Combining String Variables alphabetically Statalist
› forum › general-stata-discussion › general › I mean, in my dataset, I have a string variable X, which has 10 values such as a, b, c, etc.
When I use tab command, it gives the result X freq. a.
Always keep a log. Categorical Variables in Stata - Duration: Will you still have any use for the string variable? Whenever you create a new variable, it is a good idea to label it. Featured on Meta.
Let's say you have data on the health habits of Canadians aged 12 and up, but In order to see what a string variable looks like, we can use the converse.
Sign in to make your opinion count.
Video: Sort string variable stata 12 Time series in Stata®, part 1: Formatting and managing dates
Nick Cox. Nick Cox Nick Cox Your goal is to make your dataset as small as possible, while keeping all the relevant information.
stata How to sort string variable in the order I generated it in the code Stack Overflow
When I use tab command, it gives the result X freq. Some useful tips before you get started . Never clean a dataset by blindly entering commands or worse, clicking buttons.
Sort string variable stata 12
|Comment Post Cancel.
It will very often be the first assignment of a research assistant and is the tedious part of any research project that makes us wish we HAD a research assistant. Hot Network Questions. Research Made Easy with Himmy Khan 9, views.
Video: Sort string variable stata 12 Data management: How to convert categorical string variables to labeled numeric variables
This video is unavailable.