R/print.glmmML.R

Defines functions print.glmmML

Documented in print.glmmML

print.glmmML <- function(x,
                         digits = max(3, getOption("digits") - 3),
                         na.print = "",
                         ...){ 
    
    cat("\nCall: ", deparse(x$call), "\n\n")
    savedig <- options(digits = digits)
    on.exit(options(savedig))
    coef <- x$coefficients
    se <- x$coef.sd

    tmp <- cbind(coef,
                 se,
                 coef/se,
                 signif(1 - pchisq((coef/se)^2, 1), digits - 1)
                 )
    dimnames(tmp) <- list(names(coef),
                          c("coef", "se(coef)", "z", "Pr(>|z|)")
                          )
    cat("\n")
    prmatrix(tmp)
    
    cat("\nScale parameter in mixing distribution: ", x$sigma,
        x$prior, "\n")
    cat("Std. Error:                             ", x$sigma.sd, "\n")

    pv <- 0.5 * pchisq(x$cluster.null.deviance - x$deviance, df = 1,
                       lower.tail = FALSE)
        cat("\n        LR p-value for H_0: sigma = 0: ", pv, "\n")
    if(x$boot){
        cat("\n Bootstrap p-value for H_0: sigma = 0: ",
        x$bootP, "(", x$boot, ")\n")
    }
    cat("\nResidual deviance:",
        format(signif(x$deviance, digits)), "on",
        x$df.residual, "degrees of freedom", 
        "\tAIC:",
        format(signif(x$aic, digits)), "\n")
}

Try the glmmML package in your browser

Any scripts or data that you put into this service are public.

glmmML documentation built on Sept. 21, 2024, 1:07 a.m.