I am using ff package to do linear regression in R. Here tt is as.ffdf object. The code goes as follows:
> fit <- lm(ADA ~ DUMMY + NLEAD + BIG4 + LOGMKT + LEV + ROA + ROAL + LOSS +
+ CFO + BTM + GROWTH + ALTMAN + ABSACCRL +
+ STDEARN + TENURE + YEAR_FE , data = tt, weight = WEIGHT)
However, I am getting the following error:
Error: cannot allocate vector of size 2.0 Gb
How can I pre-create fit as a ff object, so that fit can absorb the entire data being returned to it? Thanks.