File: car_methods.R

package info (click to toggle)
r-cran-glmmtmb 1.1.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,124 kB
  • sloc: cpp: 1,506; sh: 16; makefile: 13
file content (20 lines) | stat: -rw-r--r-- 930 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## EXPERIMENTAL (not working, not yet exported)
## modified from car::Anova.default
Anova.glmmTMB <- function (mod, type = c("II", "III", 2, 3),
                           test.statistic = c("Chisq", "F"),
                           vcov. = vcov(mod)[["cond"]], singular.ok, ...) 
{
    stop("not finished yet")
    if (is.function(vcov.)) 
        vcov. <- vcov.(mod)
    type <- as.character(type)
    type <- match.arg(type)
    test.statistic <- match.arg(test.statistic)
    if (missing(singular.ok)) 
        singular.ok <- type == "2" || type == "II"
    switch(type, II = Anova.II.default(mod, vcov., test.statistic, 
        singular.ok = singular.ok), III = Anova.III.default(mod, 
        vcov., test.statistic, singular.ok = singular.ok), `2` = Anova.II.default(mod, 
        vcov., test.statistic, singular.ok = singular.ok), `3` = Anova.III.default(mod, 
        vcov., test.statistic, singular.ok = singular.ok))
}