Risk premium of 6 different returns

Viewed 20

I have 5 asset returns and 1 risk free returns. I have been trying to calculate risk premium and standard deviations of excess returns but I keep getting this error for risk premium

Error in xts(risk_premium, order.by = dates) : order.by requires an appropriate time-based object

This is the code I've been trying to

risk.premium(FFportfolios$Market_index, FFportfolios$T.bill)

FFportfolios is the dataset name.

Market_index is one of the assets.

T.bill is the risk free asset.

0 Answers
Related