Called from dcce() when model = "ife". Runs the Bai (2009)
iterative PC estimator on the panel stored inside the fit.
.fit_ife(
panel,
y_name,
x_names,
n_factors = NULL,
max_iter = 100L,
tol = 1e-08,
include_constant = TRUE
)A list with coefficients, vcov, se,
factors, loadings, n_factors, residuals,
r2, and related fields.
Prepared panel data.frame.
Character: dependent variable name.
Character: regressor names.
Integer or NULL: number of factors. If
NULL, the BIC3 criterion of Bai & Ng (2002) is used to
select \(r\).
Integer: maximum iterations. Default 100.
Numeric: convergence tolerance on beta. Default 1e-8.
Logical: include unit FE? Default TRUE.