You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using your package as a dependency for our package enviromtx and have run into a few instances in which calling geeglm() results in code hanging. It appears to be occurring in the call to geese.fit(), specifically in the line that calls a C++ library ans <- .Call("gee_rap", y, x, offset, soffset, weights, linkwaves, zsca, zcor, corp, clusz, geestr, corr, param, control, PACKAGE = "geepack"). Running geeglm() with the trace argument shows that in these examples, the beta values get very large, gamma and alpha both become nan, and then there appears to be some kind of infinite loop. I’m wondering if there is a way to have one of these functions return an error when this happens instead of needing to terminate the R session.
An example of data in which this happens is the following:
hang_df <- read.csv("hang_df.csv")
geepack::geeglm(formula = yy ~ predictor + temp, offset = log(hang_df$xx),
family = stats::poisson(link = "log"),
id = rep(1:10, each = 3), data = hang_df, corstr = "exchangeable",
std.err = "jack",
control = geepack::geese.control(trace = TRUE))
Thanks for your quick response, I gave geeasy a try, and it gives me error messages for these examples when it runs into a matrix it can't invert in update_beta, which is helpful.
We are using jackknife standard errors and from a quick review of the geeasy reference manual it seems that that isn't implemented in this package. Is that the case? Even if so, I imagine that we could use geeasy to see if the algorithm will converge, and then if so we can use geepack to get estimates and jackknife standard errors.
Hello!
We are using your package as a dependency for our package
enviromtx
and have run into a few instances in which callinggeeglm()
results in code hanging. It appears to be occurring in the call togeese.fit()
, specifically in the line that calls a C++ libraryans <- .Call("gee_rap", y, x, offset, soffset, weights, linkwaves, zsca, zcor, corp, clusz, geestr, corr, param, control, PACKAGE = "geepack")
. Runninggeeglm()
with the trace argument shows that in these examples, the beta values get very large, gamma and alpha both become nan, and then there appears to be some kind of infinite loop. I’m wondering if there is a way to have one of these functions return an error when this happens instead of needing to terminate the R session.An example of data in which this happens is the following:
hang_df.csv
The text was updated successfully, but these errors were encountered: