@@ -89,7 +89,7 @@ function init!(F::UnrestrictedStationaryIdentified, method::Symbol, y::AbstractM
8989 # factors and loadings via PCA
9090 M = fit (PCA, y, maxoutdim= size (F), pratio= 1.0 )
9191 loadings (F) .= projection (M)
92- factors (F) .= transform (M, y)
92+ factors (F) .= predict (M, y)
9393
9494 # factor dynamics
9595 for (r, f) = pairs (eachrow (factors (F)))
@@ -105,7 +105,7 @@ function init!(F::UnrestrictedStationaryFull, method::Symbol, y::AbstractMatrix)
105105 # factors and loadings via PCA
106106 M = fit (PCA, y, maxoutdim= size (F), pratio= 1.0 )
107107 loadings (F) .= projection (M)
108- factors (F) .= transform (M, y)
108+ factors (F) .= predict (M, y)
109109
110110 # factor dynamics
111111 @views f1f1 = factors (F)[:,1 : end - 1 ] * factors (F)[:,1 : end - 1 ]'
@@ -125,7 +125,7 @@ function init!(F::UnrestrictedUnitRoot, method::Symbol, y::AbstractMatrix)
125125 # factors and loadings via PCA
126126 M = fit (PCA, y, maxoutdim= size (F), pratio= 1.0 )
127127 loadings (F) .= projection (M)
128- factors (F) .= transform (M, y)
128+ factors (F) .= predict (M, y)
129129
130130 # factor variance
131131 cov (F). diag .= var (factors (F), dims= 2 )
0 commit comments