Exam2.B.4: Example 2.B.4 from Generalized Linear Mixed Models: Modern...

Description Author(s) References See Also Examples

Description

Exam2.B.4 is used to illustrate one way treatment design with Binomial observations.

Author(s)

  1. Muhammad Yaseen (myaseen208@gmail.com)

  2. Adeela Munawar (adeela.uaf@gmail.com)

References

  1. Stroup, W. W. (2012). Generalized Linear Mixed Models: Modern Concepts, Methods and Applications. CRC Press.

See Also

DataExam2.B.4

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#-----------------------------------------------------------------------------------
## logit Model  discussed in Example 2.B.2 using DataExam2.B.4
## Default link is logit
## using fmaily=binomial gives warning message of no-integer successes
#-----------------------------------------------------------------------------------
data(DataExam2.B.4)
DataExam2.B.4$trt <- factor(x =  DataExam2.B.4$trt)
Exam2.B.4glm <-
  glm(
         formula    =  Yij/Nij~trt
       , family     =  quasibinomial(link = "probit")
       , data       =  DataExam2.B.4
       , weights    =  NULL
    #  , subset
    #  , na.action
       , start      =  NULL
    #  , etastart
    #  , mustart
    #  , offset
    #  , control    =  list(...)
    #  , model      =  TRUE
       , method     =  "glm.fit"
    #  , x          =  FALSE
    #  , y          =  TRUE
       , contrasts  =  NULL
    #  , ...
  )
summary(Exam2.B.4glm)

myaseen208/StroupGLMM documentation built on May 10, 2019, 8:28 a.m.