W statistic given in (7) of GRS (1989) <DOI:10.2307/1913625>

1 | ```
GRS.MLtest(ret.mat, factor.mat)
``` |

`ret.mat` |
portfolio return matrix, T by N |

`factor.mat` |
matrix of risk factors, T by K |

T: sample size, N: number of portfolio returns, K: number of risk factors

`GRS.stat` |
GRS test statistic |

`GRS.pval` |
its p-value |

`theta` |
maximum Sharpe ratio of the K factor portfolios |

`thetas` |
slope of the efficient frontier based on all assets |

`ratio` |
theta/thetas, proportion of the potential efficiency |

Applicable to CAPM as well as a multi-factor model

Jae H. Kim

Gibbons, Ross, Shanken, 1989. A test of the efficiency of a given portfolio, Econometrica, 57,1121-1152. <DOI:10.2307/1913625>

Fama and French, 1993, Common risk factors in the returns on stocks and bonds, Journal of Financial Economics, 33, 3-56. <DOI:10.1016/0304-405X(93)90023-5>

Fama and French, 2015, A five-factor asset-pricing model, Journal of Financial Economics, 116-1-22. <DOI:http://dx.doi.org/10.1016/j.jfineco.2014.10.010>

1 2 3 4 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.