Dear Stata community,
I'd like to generate a variable that records the number of unique values of a variable (var1) within each value of another variable (var2) over a rolling time window defined by a date variable.I cannot really come up with codes that could provide the results I'm looking for. I wondered if anyone could provide some thoughts? Any help would be greatly appreciated.
Related Posts with count number of unique values over a rolling time window defined by a date variable
Reorganising panel dataI have Panel data ranging over 8 time periods (quarters). For each individual, there are 4 quarters…
GMM Standard Errors and SAR ModelsAll: Please excuse this question as I am an ex-GeoDa user coming to STATA. In the Spatial Autoregre…
panel data analysisHi, I am getting negative test statistic for hausman test to check b/w random and fixed effects mode…
Granger causality test for Panel data regressionI want to test the direction of causality for my panel data. In order to do so, I wanted to carry ou…
panel data analysiscould anyone please explain how to interpret the results of panel data fixed effects and random effe…
Subscribe to:
Post Comments (Atom)
0 Response to count number of unique values over a rolling time window defined by a date variable
Post a Comment