I have following variables from raw data and I want to estimate the return of Stock PG using CAPM model. I found that there are a lot of missing observations due to the date gaps since trading does not occur in the weekend and during public holidays. How can I fix this problem? Should I use a new date variable?
Moreover, after fixing of date, i use the following commands to get the estimation result:
tsset date, d
gen lnPG=ln(PG)
gen rPG=100*(lnPG-L.lnPG)
gen rirf=rPG-rfr
reg rirf r_market
Is it appropriate to use gen rPG=100*(lnPG-L.lnPG) to generate the return of stock PG from its daily close price?
*just ignore hml and smb because I just use CAPM not Fama-Fetch three factor model
Array
where r_market stands for the return of market portfolio, rfr stands for daily return for the Treasury bills (risk-free rate of return), PG is the adjusted close price of stock PG
Related Posts with Problem of missing observations in CAPM estimation
Cumulative incidence proportions by covariateHi Stata forum, I would like to estimate the cumulative incidence proportions with a competing risk …
Matched pair identifierDear Statalisters, I have a dataset which matches romantic partners in the following way: Code: c…
Strings. Selecting the first occurrence of specific words in a string then ordering the selected words in a consistent way.Hello Statalist I have a data set with a variable haart1 (combination antiretroviral) as shown below…
Destring and generate hundreds of variables with an underscore in the nameHi I have a question on how to destring and generate hundreds of variables that have a similar name…
query on creating dummy variableBelow is my data. "residuals" are all the negative numbers and I created another variable "dummy" wh…
Subscribe to:
Post Comments (Atom)
0 Response to Problem of missing observations in CAPM estimation
Post a Comment