Learn R Programming

mdscore (version 0.1-3)

summary.mdscore:

Description

summary methods for the mdscore objects

Usage

# S3 method for mdscore
summary(object, …)

Arguments

object
object resulting from a run of the mdscore function.
not currently used

References

da Silva-Junior AHM, da Silva DN, Ferrari SLP (2014). mdscore: An R Package to Compute Improved Score Tests in Generalized Linear Models. Journal of Statistical Software, 61(2), 1-16., http://www.jstatsoft.org/v61/c02/

See Also

mdscore

Examples

Run this code
library(Sleuth3)
d <- transform(case1102, TLrat = Brain/Liver, Ltime = log(Time),
               Lwrat = log((Weight + Loss)/Weight),
               Treat = factor(Treatment == "BD", 
               labels=c("NS", "BD"))
               )
fitf <- glm(TLrat ~ Ltime * Treat + Days + Sex + Lwrat
            + Tumor + Treat*Lwrat, data = d,
            family = Gamma("log")
            )
X <- model.matrix(fitf)
fit0 <- glm(TLrat ~ Ltime * Treat + Sex + Lwrat + Tumor + Days,
            data=d, family=Gamma("log"))
test <- mdscore(fit0, X1=X[,9], phi=NULL)
summary(test)

Run the code above in your browser using DataLab