Skip to content

[ERROR] Divergence at iteration: object 'msg' not found #315

@pachadotdev

Description

@pachadotdev

I'm fitting a GEPPML and I found this error

fit_costs <- fepois(
    tij_bar ~ log(dist) + contig + comlang_off + colony | exporter + importer,
    data = d_slice,
    glm.iter = 100
)

NOTE: 293 observations removed because of NA values (LHS: 293).
Warning: feglm: Step halving due to non-finite deviance (7 times).
Error in fepois(tij_bar ~ log(dist) + contig + comlang_off + colony |  : 
  Error in paste0("Divergence at iteration ", iter, ": ", msg, ". Weighted-OLS returns NA coefficients. Last evaluated coefficients with finite deviance are returned for information purposes.") : 
  object 'msg' not found

The cause of the problem is that "msg" exists for problems related to mu/eta, but not to NA coefficients (https://github.com/lrberge/fixest/blob/master/R/ESTIMATION_FUNS.R#L2644)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions