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.
Ceo pay sliceDear Stata Community, I need your guidance in calculating the CEO PAY SLICE (CPS) proposed by Bebchu…
Reverse a numeric variableHi all, so i have a numeric variable with a lot of values, that are decimal: 4,626276 5,162374 5,6…
Help merging excel files in stata with 3 variablesI have 3 excel files with poverty data at the county level for the years 1980,1990, and 2000. I have…
mi impute chained trace plotsHi all, I am running the command mi impute chained (regress) x y z = a b c, add (10) burnin (100) r…
Reversion mean after overreactionsI'm studying overreactions in the BVSP index and I need to check if after these reactions the return…
Subscribe to:
Post Comments (Atom)
0 Response to Running Diebold Mariano test using panel data.
Post a Comment