Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occured when run fect #32

Open
YongchunFang opened this issue Sep 23, 2023 · 2 comments
Open

Error occured when run fect #32

YongchunFang opened this issue Sep 23, 2023 · 2 comments

Comments

@YongchunFang
Copy link

When I ran 'fect,' it displayed the following error: 'Error: Mat::init(): requested size is too large; suggest enabling ARMA_64BIT_WORD.

@xuyiqing
Copy link
Owner

xuyiqing commented Sep 23, 2023 via email

@YongchunFang
Copy link
Author

Thanks for replying to my comment.
I have upgraded my R to version 4.3.1 and updated all packages within R, but this error still occurred. Additionally, I downloaded the fect package fect_1.0.0.tar.gz from this link: (https://cran.r-project.org/web/packages/fect/index.html). I also made modifications to the src\fect.h file by adding #define arma_64bit_word 1 before #include <RcppArmadillo.h>, and included pkg_cppflags = -DARMA_64BIT_WORD=1 in both the src\Makevars and src\Makevars.win files. Afterward, I reinstalled the modified fect package. However, I am still encountering this error message. My data contains more than 700,000 observations, and 10 variables. My computer runs on a Windows operating system with 32GB of RAM.
Thanks a lot!

The traceback of this error:
Error: Mat::init(): requested size is too large; suggest to enable ARMA_64BIT_WORD
6.
stop(structure(list(message = "Mat::init(): requested size is too large; suggest to enable ARMA_64BIT_WORD",
call = NULL, cppstack = NULL), class = c("std::logic_error",
"C++Error", "error", "condition"))) at RcppExports.R#97
5.
inter_fe_ub(YY, Y0, X, II, beta0, r.cv, force = force, tol) at fe.R#106
4.
fect.fe(Y = Y, D = D, X = X, I = I, II = II, T.on = T.on, T.off = T.off,
r.cv = r, T.on.carry = T.on.carry, T.on.balance = T.on.balance,
balance.period = balance.period, binary = binary, QR = QR,
force = force, hasRevs = hasRevs, tol = tol, boot = 0, norm.para = norm.para, ... at default.R#1429
3.
fect.default(formula = NULL, data = data, Y = Yname, D = Dname,
X = Xname, group = group, na.rm = na.rm, balance.period = balance.period,
fill.missing = fill.missing, index = index, force = force,
r = r, lambda = lambda, nlambda = nlambda, CV = CV, k = k, ... at default.R#169
2.
fect.formula(eat1 ~ indeed + age_1, data = df, index = c("visitl",
"amonth"), method = "fe", force = "two-way", parallel = TRUE) at default.R#82
1.
fect(eat1 ~ indeed + age_1, data = df, index = c("visitl", "amonth"),
method = "fe", force = "two-way", parallel = TRUE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants