Hi Everyone,
I am trying to estimate rolling betas by using the past 24-60 months of data. I require at least 24 months of non-missing observations in the past 60 months. For example, if a stock has 24 observations, I want to estimate betas until that month. Or, if a stock has N observation where 24<=N<=60 with at least 24 non-missing data, I again want to estimate until that month. To do that, I run the following:
rolling _b, window(60) saving(betas, replace) reject(e(N) < 24): regress exc_ret mktrf smb hml mom
However, I can not get any result when there are less than 60 and more than 24 months of observations. Let's say a stock starts to report in month t and has non-missing values until t+23. I also want to get estimates for that month since there are at least 24 months. I guess "window(60)" option does not allow me to get results when there are less than 60 observations. As far as I understand, this code checks whether there are 60 observations and at least 24 of them are non-missing.
Is there a way to solve this problem? Thanks.
Ulas
Related Posts with Rolling Regression with 24-60 months of observations
Distribution of firms by industry (based on SIC codes)Hello, I wanted to see the distribution of firms in the various industry areas (based on the first 2…
Analyzing the properties of OLS and IV estimators when an important variable ability is omittedPlssss, can somebody help me with my university assignment of Econometrics Course and help me with c…
-list- all variables but selected ones?I'm wondering if there is a way to -list- all variables excluding those that I select. Let's say, I …
Survival Analysis: help with survsim and creating a loop/program to save estimates into a tableHello, I am trying to create 10 datasets of simulated survival data and store the estimates in one …
Analyzing the properties of OLS and IV estimators when an important variable "ability" is omittedPlssss, can somebody help me with my university assignment of Econometrics Course and help me with c…
Subscribe to:
Post Comments (Atom)
0 Response to Rolling Regression with 24-60 months of observations
Post a Comment