dumy variable problem
Posted: Tue Aug 10, 2010 11:33 am
Hi all, i hope someone can help
Basically i have a time series of bid-ask spreads for a stock- around 400 observations. I want to regree bid-ask spreads on volatility and also a dummy variable corresponding to when a piece of legislation came in. I Want to infer whether the spreads got bigger or smaller after the legislation came in.
Suppose the legislation came in on the 200th observation. Hence i beleive i should create a dummy variable corresponding to those variables after the 200th, i.e. between the 200 and 400th observation. Hence if the dummy is negative and significant i can infer that the spreads declined.
spread c volatility dummy(corresponding to post legislation period)
Can neone propose the correct coding i need to use to do this.
Your help would be much appreciated.
Many thanks
Basically i have a time series of bid-ask spreads for a stock- around 400 observations. I want to regree bid-ask spreads on volatility and also a dummy variable corresponding to when a piece of legislation came in. I Want to infer whether the spreads got bigger or smaller after the legislation came in.
Suppose the legislation came in on the 200th observation. Hence i beleive i should create a dummy variable corresponding to those variables after the 200th, i.e. between the 200 and 400th observation. Hence if the dummy is negative and significant i can infer that the spreads declined.
spread c volatility dummy(corresponding to post legislation period)
Can neone propose the correct coding i need to use to do this.
Your help would be much appreciated.
Many thanks