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
Time taken by estimation?Hi everyone, I want to calculate the time gained by a maximum likelihood estimator in coming up wit…
Regression output does not show all coefficientsHi, I have a quick question: When I enter the following code for a regression with 1 independent v…
Manipulate x-axis in twoway graph with dates Hi Stata users, I want to make a twoway bar graph that plots a number (on the y axis) against a dat…
Dropping missing observations under several conditionsHej Statalist, I have a problem with dropping some observations. I analyse a trade data set and hav…
classified after XT models - invalid subcommand classificationHello, I am using 4 binomial models. Logit, xtlogit re, xtlogit pa, and xtlogit fe. After logit I us…
Subscribe to:
Post Comments (Atom)
0 Response to Distinct occurrences of variable value within each individual in a panel
Post a Comment