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
Propensity Score Matching Panel DataHello, I am looking to analyse the change (if any) in the political opinion of an individual after t…
graph editingI created the attached data file from data on the web. I typed:: hbar pctdiff,l(name) using Nick C…
xtreg adjusted for heteroskedasticiy and firm-level clusteringHello, I have unbalanced panel data (74 companies with a total of 800 observations over 18 years). …
using asdoc command when we have loop commandhello, I use this code in terms of the effect the tariff on output , trade balance, exchange rate. I…
Wrong observation number and cluster numberHi, I am currently puzzled by having a different observation and cluster count in the regression mo…
Subscribe to:
Post Comments (Atom)
0 Response to Flag repetitions
Post a Comment