Hi everyone,
I am totally new here and very new to Stata, nice to meet you all. This maybe a very simple question, I am sorry if this makes you feel that you are wasting your time. Your help would be very appreciated. I have a panel data with 320 financial products and 20 quarters of data. There are two sets of pricing predictions and the real price trend for each product. The goal of the test is to see which pricing function predicted the real price better in sample. As far as I know and tried, DM test can only run on time series data, so I tried to run the test separately for each product as a time series test, using loop and statsby statement. The code is like the following, Stata says there is repeated time values in sample. But I double checked that there is no duplicated time for each id.
forvalues i = 1(1)320 {
if id == `i' {
tsset quarter
dmariano ln_price ln_VC ln_VT
}
}
Can someone show me to the right direction, Thanks.
Boheng
Related Posts with Running Diebold Mariano test using panel data.
Revised module – parseuas – available from SSCThanks to Kit Baum, the revised version 1.4 of our module – parseuas – is now available for download…
New version of invdesc on SSCThanks as always to Kit Baum, a new version of the invdesc package is now available for download fro…
Fama and MacBeth two-step procedure with logit regressionsDear members, Is there a possibility to run a Fama and MacBeth two-step procedure in STATA where lo…
Regression interpretationHi, I would like to ask for some clarification on regression interpretation. The dependent variabl…
Time Trends for Panel DataHello, I am writing a descriptive paper on substance use estimates across 4 years (2013-2017) using…
Subscribe to:
Post Comments (Atom)
0 Response to Running Diebold Mariano test using panel data.
Post a Comment