coef.wald: Extract coefficients from Wald object

Usage Arguments Examples

View source: R/wald.R

Usage

1
coef.wald(obj, se = FALSE)

Arguments

obj
se

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (obj, se = FALSE) 
{
    if (length(obj) == 1) {
        ret <- ret <- obj[[1]]$coef
        if (is.logical(se) && (se == TRUE)) {
            ret <- cbind(coef = ret, se = obj[[1]]$se)
        }
        else if (se > 0) {
            ret <- cbind(coef = ret, coefp = ret + se * obj[[1]]$se, 
                coefm = ret - se * obj[[1]]$se)
            attr(ret, "factor") <- se
        }
    }
    else ret <- sapply(obj, coef.wald)
    ret
  }

gmonette/spida documentation built on May 17, 2019, 7:25 a.m.