Dear All, Suppose that I have daily trading data for many years. (A sample of two-year data is "here"). I wish to generate a variable, say, event, which is equal to 0 on March 15 for each year. For trading data befoer March 15, `event' is equal to -1, -2, and so on. Similarly, for trading data after March 15, `event' is equal to 1, 2, and so on. Any suggestions are highly appreciated.
Related Posts with generate event time
forvaluesI ran the following command forvalues state_num = 1 (1) 51 { reg edge percentFRL } Trying to run t…
Goodness of fit binairy logistic panel regression?Good day, I am trying to compare the goodness of fit of 6 different models (binary logistic panel re…
How to use e in stata?Hello every one. How can i run this equation in stata? 1/(1+e-x) I can calculate x separately, …
destring, ignoreI have been trying for hours and also searching for assistance on using the destring, ignore command…
Date format questionHello, I'm trying to merge two datasets using a variable called sur_mon_yr that is month/year. E.g. …
Subscribe to:
Post Comments (Atom)
0 Response to generate event time
Post a Comment