Storage formats such string or numeric are the variable’s type, different from its format. Labeling categorical variables is preferred and should be treated as a part of data management. Only text or IDs should ever be stored as a string variables. ![]() As a rule of thumb in Stata, ordinal and categorical variable should be stored as numeric variables with labeled values. This is also beneficial for storage size of variables. For tasks in analysis such as regression, Stata requires categorical variables to be stored as numeric variables, not string variables. Variables are stored in two broad categories: string (text) or numeric. Some data types such as dates have specific metadata attached – Januwas a Friday – that relate to storage type. This information could be how many digits of precision are required or if the variable is just 0 or 1s. This storage type determines if the software treats a variable as text or a number, and how much information is stored in each variable. Statistical software requires a storage type to determine how and what data to store about each variable or value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |