Code Monkey home page Code Monkey logo

Comments (8)

yli110-stat697 avatar yli110-stat697 commented on May 27, 2024

Hi @anajens and @wwojciech , so the above error is coming from test-tabulate_mmrm.R However when I run the tests, I got different error messages.

Screen Shot 2021-08-10 at 11 16 13 AM

from tern.

anajens avatar anajens commented on May 27, 2024

@yli110-stat697 what environment are you testing this in?

from tern.

yli110-stat697 avatar yli110-stat697 commented on May 27, 2024

@yli110-stat697 what environment are you testing this in?

In the latest rocker docker-registry.nest.roche.com/nest/r/rocker/nest:devel-latest

from tern.

yli110-stat697 avatar yli110-stat697 commented on May 27, 2024

So it seems like when arm is taken out of the vars in fit_mmrm, all the 7 optimizers are having converging problems during model fit.

from tern.

anajens avatar anajens commented on May 27, 2024

I also can't reproduce the initial error above and see the 3 errors related to model not converging when testing with rstudio_4.1.0_bioc_3.13 and staged.dependencies which need to be fixed.

I checked the results of the first test that fails above vs our last release and the estimates from the model that is returned by fit_lme4_single_optimizer are identical. However, there is now a new warning about a singular fit.

@danielinteractive any suggestions on how to proceed? We can easily update the tests to use different covariates but I'm wondering if there are any additional actions needed to update how messages are handled byfit_lme4?

Result from 2021_07_07 release (tested with 3.6.3 BEE):
image

Result from main branch (tested docker rstudio_4.1.0_bioc_3.13 with staged.dependencies):
image

Here's the code I used from test-tabulate_mmrm.R:

anl <- get_anl() %>%
  mutate(
    ARM = factor(ARM, levels = c("B: Placebo", "A: Drug X", "C: Combination")),
    AVISIT = factor(AVISIT)
  )

debugonce(fit_mmrm)

mmrm <- fit_mmrm(
  vars = list(
    response = "AVAL",
    visit = "AVISIT",
    covariates = c("BMRKR2"),
    id = "USUBJID"
  ),
  data = anl,
  cor_struct = "random-quadratic"
)

from tern.

danielinteractive avatar danielinteractive commented on May 27, 2024

@anajens Yeah this convergence stuff is unfortunately pretty fragile between different machines, R package versions etc. To me your example result above on main actually looks better than on latest release. I don't think we need to hide this additional line printed in the bottom. So I would go with your suggestion to update the models being tested. I hope it's not those comparing to SAS results though?

from tern.

anajens avatar anajens commented on May 27, 2024

Thanks Daniel. It's not the SAS tests that are failing.

I still don't understand how the model summary can look identical across systems but in one case isSingular returns FALSE and TRUE in the latter.

from tern.

danielinteractive avatar danielinteractive commented on May 27, 2024

@anajens I would guess that it is just the interpretation of model results into these singularity flags that changed.

from tern.

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.