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.
How to generate a variable that uses other variables when I have missing valuesI am trying to generate a variable (CSSD) for dispersion which is equal to the sum of the squared de…
Interpreting pvarsoc command (optimal lag)I want to use a dynamic panel data model and I am trying to figure out what will be the optimal lag …
IVtobit marginal effectsDear Listers, I am trying to estimate the marginal effects after running ivtobit. The following cod…
Hausman Test issue: difference = 0 for every regressorI am dealing with panel data on 19 UK industries from 1997 to 2018. To test which estimator is most …
Test the effect that the combined level of education in couples has on financesHi Statalist. I would like to test the effect of the combined level of education of each partner in…
Subscribe to:
Post Comments (Atom)
0 Response to Running Diebold Mariano test using panel data.
Post a Comment