Hello everyone,
I have a variable called stratum which is supposed to carry numbers from 1 to 10. Sometimes a few numbers (e.g. 3 and 7) are missing when I tabulate the stratum variables. I want to know (without tabulating stratum) which numbers are missing from the list and store the missing values in new variables.
i.e.:
If startum variable contains only 1,2,4,5,6,8,9 and 10, then I want to generate two new variables var1 & var2 where var1 has value 3 and var2 has value 7 (or temporarily store values 3 and 7 in some temporary variables).
I don't know how to do that and I need your help in doing so.
Thanks in advance.
Amit
Related Posts with Identify a number which is not present in a numbers' list
How to inform readers the context of hierarchical logistic regression that removes significant main effectsHello all, I'm examining a hypothetical scenario to determine how living alone and the mechanism of…
Generating dummy observations to balance a panelI hope this request makes sense, as it is just to aid in my estimation. Below is the dataex of a dum…
PPML - generating a time dependent thresholdDear Stata community, I am working with a gravity model and what to cluster my observations dependi…
Determining the explanatory power of an interaction termHi everyone, I'm trying to fill a table with each line representing the explanatory power of a part…
Conditional loop analysis with sums in panel dataI have an unbalanced data of company id (i) country code (c) year (y) ratio-1 (r1) ratio-2 (r2) …
Subscribe to:
Post Comments (Atom)
0 Response to Identify a number which is not present in a numbers' list
Post a Comment