download.RiskFree    package:PerformanceAnalytics    R Documentation

_d_o_w_n_l_o_a_d _1_3-_w_e_e_k _U_S _T_r_e_a_s_u_r_y _B_i_l_l _P_r_i_c_e_s _a_n_d _c_a_l_c_u_l_a_t_e _1_3-_w_e_e_k _U_S _T_r_e_a_s_u_r_y _B_i_l_l _r_e_t_u_r_n_s

_D_e_s_c_r_i_p_t_i_o_n:

     This function downloads daily/monthly 13-week US Treasury Bill 
     _prices_ as the risk free asset using 'get.hist.quote' for
     "\^irx\^" and calculate _returns_ using 'CalculateReturns' as a
     good proxy for the Risk Free Rate.

_U_s_a_g_e:

     download.RiskFree(start = "1998-01-01", end = NULL, compression=c("m","d"))

_A_r_g_u_m_e_n_t_s:

   start: start date in YYYY-mm-dd format, default "1998-01-01"

     end: end date in YYYY-mm-dd format

compression: "m" for monthly returns and "d" for daily returns, default
          monthly, as passthru to 'get.hist.quote'

_V_a_l_u_e:

     matrix of simple or compound returns on the 13-week US Treasury
     Bill at the daily/monthly scale specified

_A_u_t_h_o_r(_s):

     Peter Carl

_S_e_e _A_l_s_o:

     'CalculateReturns' 
      'download.SP500PriceReturns' 
      'get.hist.quote'

_E_x_a_m_p_l_e_s:

     rf = download.RiskFree(start = "1997-12-01", end = "2007-01-01")
     class(rf)
     head(rf)

