Giter VIP home page Giter VIP logo

Comments (6)

reiniervlinschoten avatar reiniervlinschoten commented on July 18, 2024

There seem to be experimental functions in broom.mixed, but these don't seem to work?

Moreover, I can't seem to find any other way to extract the residual degrees of freedom from the model (normally this would be given by glance()), is there any other way to extract this?

from glmmadaptive.

drizopoulos avatar drizopoulos commented on July 18, 2024

from glmmadaptive.

reiniervlinschoten avatar reiniervlinschoten commented on July 18, 2024

Thank you for the quick response. Is there any way to extract the residual df from a MixMod object?

from glmmadaptive.

drizopoulos avatar drizopoulos commented on July 18, 2024

from glmmadaptive.

reiniervlinschoten avatar reiniervlinschoten commented on July 18, 2024

Yeah, I ran into that too, maybe a temporary workaround can be added to allow functionality that depends on residual degrees of freedom?

For example from the glmmTMB package?
(Don't know if this is an acceptable solution, but this would allow the package to be used with for example MICE).

##' @importFrom stats df.residual
##' @method df.residual glmmTMB
##' @export
##  TODO: not clear whether the residual df should be based
##  on p=length(beta) or p=length(c(theta,beta)) ... but
##  this is just to allow things like aods3::gof to work ...
##  Taken from LME4, including the todo
##
df.residual.glmmTMB <- function(object, ...) {
  nobs(object)-length(object$fit$par)
}

from glmmadaptive.

drizopoulos avatar drizopoulos commented on July 18, 2024

Perhaps it would allow it to work with MICE, but the relevant questions are where these degrees of freedom will be used and whether giving these degrees of freedom may lead to incorrect results.

from glmmadaptive.

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.