I try using the below code of subtracting monthly risk free rate (rf) from each of the 25 monthly portfolio returns (idio1-idio25). It show a bug:
invalid syntax
r(198);
But I can't figure out where am i making error in writing the code.
invalid syntax
r(198);
But I can't figure out where am i making error in writing the code.
Code:
local vars idio1-idio25 foreach local var of local vars { generate ex_`var'=`var'-rf }
Comment