Skip to content

Commit

Permalink
typo in giglio xiu 2021
Browse files Browse the repository at this point in the history
  • Loading branch information
a91quaini committed Jul 10, 2024
1 parent 360df50 commit 5a45fd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Rcpp::List GiglioXiu2021RiskPremiaCpp(
arma::vec e_vals;
arma::mat U;
arma::mat V;
arma::svd(U, e_vals, V, centered_returns.t() / (n_assets * n_observations));
arma::svd(U, e_vals, V, centered_returns.t() / std::sqrt(n_assets * n_observations));
e_vals = arma::square(e_vals);


Expand Down
Binary file modified tests/testthat/Rplots.pdf
Binary file not shown.

0 comments on commit 5a45fd1

Please sign in to comment.