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
Comparing string variables and extracting string variablesDear members, I have a question related to the topic of comparing string variables and extracting s…
Stata to perform boosted regressionHi Everyone, I'm trying to perform a boosted logistic regression in order to measure the prediction…
How to omit variables with mean 0 from a stacked barHi all, I wanted to create stacked bars for some variables where the bar's divisions would be diffe…
country pair fixed effects in gravity modelCan country pair fixed effects be used to address endogeneity in the case where the endogenous covar…
Create Output table with multiple variablesHi Everyone! New here and to STATA. Am done with the data cleaning and analysis (yay!), however woul…
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