The server I’m working on does not allow me to install -dataex-, so I apologize for the lack of standardized example!
I’m working with a panel. I have individual-level purchase data from a chain of stores, and each person’s purchases were aggregated monthly. I have an id variable for each person (mvp_id) and an indicator variable for month (mthyr). I also have a variable that gives me the store ID where the person spent most money in each month (topstore1). I need to know how many people have (two or more) different top stores across the months in my dataset, versus how many people have the same top store across all months in my dataset.
Related Posts with Distinct occurrences of variable value within each individual in a panel
Creating*copies with missing valuesHi Stata users, I have a dataset as shown in the example below Code: * Example generated by -data…
How to modify individual graph's title on combined graphDear Stata users, Suppose we have a combined graph that is composed of two individual graphs, let's …
create a dummy variable if variables in two groups matchHello stata users, I would like to create a dummy variable if any variables in two different groups…
Survival analysis with inverse probability weighting after multiple imputationDear Statalist-users, Hopefully, there is someone who can help me with the following: I'm trying to…
Creating a loop to count the weeks before and after a policyHi, I'm working on understanding the impact of a hospital policy on healthcare utilization. The pol…
Subscribe to:
Post Comments (Atom)
0 Response to Distinct occurrences of variable value within each individual in a panel
Post a Comment