Suppose I have a dataset containing two variables X and Y. Without resorting the data, I would like to add 2 flag variables, one indicating whether the value of X has occurred earlier in the dataset and one indicating whether the value of Y has occurred earlier.
What's the best way to do that in Stata?
Related Posts with Flag repetitions
Displaying symbols in value labelsHi, is there a way to display math symbols like "greater than or equal to" as value labels and have …
Test for a trend of bacterial resistance against antibiotics over ten years periodDear statalist, Unfortunately, I posted this question one week on cross-validated and have yet to g…
need equal spaces for unequal time points in x-axis of graphI'm trying to create a line graph showing trends in religiosity across five waves of survey data (2,…
Creating age-range variableHello! I would like to create a new age-range variable, which will be a breakdown of already existin…
random number generationusing stata 13 I have set a seed value and using gen random=runiform() generated random numbers. Whe…
Subscribe to:
Post Comments (Atom)
0 Response to Flag repetitions
Post a Comment