We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6163643 commit 40ce627Copy full SHA for 40ce627
src/utilities.jl
@@ -144,7 +144,7 @@ function collapse(model::DynamicFactorModel; objective::Bool = false)
144
y_low = [A_low * yt for yt in eachcol(data(model))]
145
Z_low = A_low * loadings(model)
146
if mean(model) isa ZeroMean
147
- d_low = [Zeros(mean(model).type, nfactors(model)) for _ in 1:nobs(model)]
+ d_low = [Zeros(mean(model).type, size(Z_low, 1)) for _ in 1:nobs(model)]
148
elseif mean(model) isa Exogenous
149
d_low = [A_low * μt for μt in eachcol(mean(mean(model)))]
150
end
0 commit comments