| ipca_est | R Documentation |
IPCA factor extraction
ipca_est(ret, Z, nfac, max_iter = 100, tol = 1e-06, factor_mean = "zero")
ret |
Numeric matrix (T x N) of asset returns. Use |
Z |
Numeric array (T x N x L) of asset characteristics. |
nfac |
Positive integer; number of latent factors K to extract. |
max_iter |
Maximum ALS iterations (default 100). |
tol |
Convergence tolerance on Frobenius norm of loading change (default 1e-6). |
factor_mean |
Character scalar specifying how the factor mean is
modelled. One of |
An object of class "sdim_fit" with fields:
factors (T x K), lambda (L x K characteristic loadings,
i.e. Gamma in Kelly et al.), eigvals (factor variances),
factor_mean (character scalar), call,
method = "ipca", nfac.
If factor_mean = "constant": also mu (length-K mean vector).
If factor_mean = "VAR1": also var_coef (K x K),
var_intercept (length-K), var_resid ((T-1) x K).
Kelly, B. T., Pruitt, S., and Su, Y. (2019). Characteristics are Covariances: A Unified Model of Risk and Return. Journal of Financial Economics, 134(3), 501–524. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.jfineco.2019.05.001")}
set.seed(1)
ret <- matrix(rnorm(50 * 10) / 100, 50, 10)
Z <- array(rnorm(50 * 10 * 4), dim = c(50, 10, 4))
fit <- ipca_est(ret, Z, nfac = 2)
print(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.