Hi,
I'm working with a panel data set that consists of daily stock prices. I would like to create a dummy variable that is equal to 1 if the price of that specific stock was below 1 USD on any day within the last year. Finally, I want to delete that stock from my data set.
Could anyone help me with this?
Thanks in advance!
Peter
Related Posts with Delete panel data observation if price i below certain threshold
Export multiple xtabond2 resultsHello Statalist users, I need help with exporting multiple xtbond2 estimations along with their pos…
What is intreg? What is the theory behind it?The UCLA IDRE website has an article on -intreg- to estimate models with interval dependent variable…
How to create groups of observations based on shared characteristics and create variables around that.So I'm doing some work with election data. The data I have is formatted like this: Code: * Example…
Testing the CAPM using the Fama-MacBeth (1973) ApproachDear all, This is a purely statistical question, and has nothing to do with the programming languag…
Diff-in-diff graphI am currently running a diff-in-diff analysis on stop and frisk policies in new york city using New…
Subscribe to:
Post Comments (Atom)
0 Response to Delete panel data observation if price i below certain threshold
Post a Comment