inst/snippet/chol-contrasts.R

###hop:9-15
summary(glht(chol.model, mcp(trt = 
    rbind(
        "1time - 2times" = c(1,-1,0,0,0),
        "(1 or 2 times) - 4times" = c(0.5,0.5,-1,0,0),
        "new - old" = c(2,2,2,-3,-3)/6,
        "drugD - drugE" = c(0,0,0,1,-1))
    )))

Try the fastR package in your browser

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

fastR documentation built on May 1, 2019, 11:18 p.m.