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
Regression with multiple dependent variablesHi, I am trying to run a set of logit models using the following formula, but it is not working. Ca…
Looping to create marginsplots for different moderators but how to get the same y-axis?Hi everybody I am researching how outsourcing affects employees in terms of income, employment, and…
Comparing two string variables and extract difference into a new variableHi, I am trying to tackle the problem of comparing text between two string variables and identify (…
How to delete observation if one of these variables missing?A common practice to reduce the size of the panel sample (to reduce the time that Stata process the …
Confirmatory factor analysisHi! Just wonder in the computation of confirmatory factor analysis, what input is putting in the for…
Subscribe to:
Post Comments (Atom)
0 Response to Distinct occurrences of variable value within each individual in a panel
Post a Comment