Hello guys,
I am trying to replicate an approach from Barber, Brad M. and Huang, Xing and Odean, Terrance, Which Factors Matter to Investors? Evidence from Mutual Fund Flows (May 18, 2016).
Array
from the above equation what I understand we need to use nl command to execute equation 5. I am using following command for equation 5. The command is incomplete as I have not writing the control variables and all the 18 lags, that I will add later. Following is the command.
nl (flow = {b0} + {b1}*exp(-{lambda=1}*(1-1))*L1.alphaMAR + {b2}*exp(-{lambda=1}*(2-1))*L2.alphaMAR+{b3}*exp(-{lambda=1}*(3-1))*L3.alphaMAR +{b4}*exp(-{lambda=1}*(4-1))*L4.alphaMAR +{b5}*exp(-{lambda=1}*(5-1))*L5.alphaMAR +{b6}*exp(-{lambda=1}*(6-1))*L6.alphaMAR +{b7}*exp(-{lambda=1}*(7-1))*L7.alphaMAR +{b8}*exp(-{lambda=1}*(8-1))*L8.alphaMAR +{b9}*exp(-{lambda=1}*(9-1))*L9.alphaMAR) if obs>9
Array
Now I am not sure how to run equation 6. Following is an excerpt from the paper "We apply this decay function to the monthly alphas and factor-related returns for each fund-month observation. For example, when considering flows for funds in month t, we calculate the fund’s alpha as a weighted average of the prior eighteen monthly alphas:"
Thank you in advance for any help!
Related Posts with Weighting
Question about Stata close button on MacBook?Dear all, My Stata version is Stata 17 (MP 4) and on MacBook Air.I find that the close button's colo…
How to perform the pre-trend test in did_imputation?From reading the help file of did_imputation, I saw that pretrends(integer): if some value k>…
Merging two datasetsHi all, Im new to STATA so I apologise if this is a silly question. I am trying to combine two data…
How many pre-treatment periods we should test for paralell trend in the case of daily data?In a difference-in-differences setting, if we deal with yearly data, we normally test the parallel t…
How to retrieve all the coefficient of independent variables of did_imputation package?Hi all, Normally, in a research paper, we need to present a table of coefficients of all independen…
Subscribe to:
Post Comments (Atom)
0 Response to Weighting
Post a Comment