R/coef.dglars.R

Defines functions coef.dglars

Documented in coef.dglars

coef.dglars <- function(object, type = c("pearson", "deviance", "mle", "grcv"), g = NULL, ...){
    type <- match.arg(type)
    out <- predict(object, g = g, type = "coefficients")
    if(type != "pearson") out$phi <- phihat(object, type = type, g = g, ...)
    out$g <- if(is.null(g)) object$g
                else g
    out
}

Try the dglars package in your browser

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

dglars documentation built on Oct. 10, 2023, 1:08 a.m.