# Data format (wide or long) for propensity Score matching using psmatch2

I have a panel data with sales rank of an app on appstore over a period of 11 months. Some of the apps were promoted during this period and form the treatment groups (treated=1), while others form the control group. While there are 180 treated apps, there are close to 21k controls apps. I wish to find the nearest neighbors of the treated apps from the control apps during the pre-treatment period, so that I am essentially making an apples-to-apples comparison while estimating treatment effects. I am using psmatch2 package from Stata, however, I am confused if this package requires long or wide data format (I have found contradicting examples on internet), and the psmatch2 documentation itself does not mention anything in specific.

Propensity score matching with panel data answer suggests using wide format in general, however the author of answer is not familiar with psmatch2.

So, what format should I store my data in, wide or long?

Any help would be greatly appreciated.

Thanks!

However, it sounds like apps get treated at different times, so this sort of data structure will not work very well because the number of pre-treatments periods and the number of matching variables will be different for each app. psmatch2 cannot handle that easily.