nmecsys / nowcasting

R package for Dynamic Factor Models with mixed frequencies and unbalanced panel :chart_with_downwards_trend:
98 stars 39 forks source link

Update nowcast.R #11

Closed paullabonne closed 1 year ago

paullabonne commented 2 years ago

should solve issue #9

added ncol=ncol(blocks) otherwise matrices with only one column (single factor) become vectors and the subsequent code produces an error when dim(blocks)[2] is called