Skip to content

ictreg nls giving mustart error #12

@darrelrobinson

Description

@darrelrobinson

I'm not sure where the issue is, or if I'm just using the function incorrectly, but I was hoping to get some help. Were trying to run an ictreg with method = "nls" but receive the error message "Error in family$linkfun(mustart) : Value 1.1 out of range (0, 1)". Initially I suspected NA values but that doesn't seem to be the problem.

Our call to ictreg is:

fit.list <- ictreg(y ~ yob + ed + gen + rur + par + gov + aut,
                              data = df, treat = "treat", J=4, method = "nls")

Using method = "lm" works without issue, but method = "ml" also produces the same error as above. I've attached a small sample of our dataset, we would be very grateful for any help.

df_rep.csv.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions