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

Having difficulty fitting on 0 inflated binomal data set #16

Open
alexhallam opened this issue Feb 15, 2024 · 0 comments
Open

Having difficulty fitting on 0 inflated binomal data set #16

alexhallam opened this issue Feb 15, 2024 · 0 comments

Comments

@alexhallam
Copy link

alexhallam commented Feb 15, 2024

I was just hoping you would have some pointers. I can't seem to get this to work for 0 inflated binomial data.

Here is a reproducible example

library(tidyverse)
library(rmetalog)
surg <- read_delim("https://hastie.su.domains/CASI_files/DATA/nodes.txt")
surg <- surg |>
  mutate(avg = x/n)
fit <- metalog(x=surg$avg, term_limit = 3, term_lower_bound = 3,
               boundedness = "b", bounds = c(0,1))

And I just get the error

Error in lpSolve::lp("min", f.obj, f.con, f.dir, f.rhs) : 
  NA/NaN/Inf in foreign function call (arg 5)

Any pointers would be very much appreciated. Thanks!

This is the PDF I was expecting to see

image

This is what I am getting for the PDF when I do get an output.

image

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

1 participant