Git Product home page Git Product logo

Comments (7)

ikosmidis avatar ikosmidis commented on May 27, 2024

Hi @cperk: thanks for the report. If you share a reproducible example (with data and code) that demonstrates the issue I can investigate. The reprex R package may come in handy. -I

from brglm2.

cperk avatar cperk commented on May 27, 2024

Thanks!

Here is a reproducible example:

df1 <- data.frame(production=c(15,12,10,9,6,8,9,5,3,3,2,1,0,0,0,0), Treatment_Num=c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4), Treatment=c("Fresh","Fresh","Fresh","Fresh","low","low","low","low","med","med","med","med","high","high","high","high"),Genotype=c(1,1,2,2,1,1,2,2,1,1,2,2,1,1,2,2), Source_Salinity=c("Fresh","Fresh","Brackish","Brackish","Fresh","Fresh","Brackish","Brackish","Fresh","Fresh","Brackish","Brackish","Fresh","Fresh","Brackish","Brackish"), Days_to_death <- c(500, 500, 500, 500, 400, 350, 300, 500, 200, 202, 260, 280, 150,150,160,140), censored <- c(1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0))


salmonella_fm <- production ~ Treatment
N_T_6_2020_nbn_toy <- brglm2::brnb(salmonella_fm,
                               data=df1,link = "log",transformation = "inverse", type = "AS_mean")

I figured out that it only happens when the fixed effect is categorical; when I use a numeric version of Treatment, the error disappears:

salmonella_fm <- production ~ Treatment_Num
N_T_6_2020_nbn_toy <- brglm2::brnb(salmonella_fm,
                               data=df1,link = "log",transformation = "inverse", type = "AS_mean")

In my real data it wouldn't be appropriate to convert Treatment to numeric, so I would really appreciate it if you could find a solution for using a categorical fixed effect!

from brglm2.

cperk avatar cperk commented on May 27, 2024

Any update on this?

from brglm2.

ikosmidis avatar ikosmidis commented on May 27, 2024

We are investigating the issue you opened. I understand that you may need a resolution quickly, but please note that we cannot guarantee the timeframe of response/resolution.

from brglm2.

cperk avatar cperk commented on May 27, 2024

Hi! I totally understand that you couldn't resolve this issue right away; are you any closer?

from brglm2.

cperk avatar cperk commented on May 27, 2024

any update?

from brglm2.

melwarden77 avatar melwarden77 commented on May 27, 2024

I am having the same issue.

from brglm2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.