Skip to content
Prev 759 / 15274 Next

using yahoo and other data to calculate CAPM and FF betas

I mentioned omitting the missing values via na.omit and the poster
below mentioned using linear approximation.  Note that
the zoo package actually has 4 missing value routines:

na.omit - omit missing values
na.approx - replace missing values with linear approximations
na.locf - replace missing values with the last occurrernce carried forward
na.contiguous - remove all but a contiguous stretch of non-missing values
1 3 5
1 3 5
1 2 3 4 5
1 1 3 3 5
1 2 3 4 5
1 2 3 4 5
3
3
On 4/6/06, Krishna Kumar <kriskumar at earthlink.net> wrote: