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

Description Author(s) References See Also Examples

Description

Exam2.B.1 is used to visualize the effect of lm model statement with Gaussian data and their design matrix

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

Table1.1

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
#-----------------------------------------------------------------------------------
## Linear Model  discussed in Example 2.B.1 using simple regression data of Table1.1
#-----------------------------------------------------------------------------------
data(Table1.1)
Exam2.B.1.lm1 <-
  lm(
      formula     = y~x
    , data        = Table1.1
    #  , subset
    #  , weights
    #  , na.action
    , method      = "qr"
    , model       = TRUE
    #  , x           = FALSE
    #  , y           = FALSE
    , qr          = TRUE
    , singular.ok = TRUE
    , contrasts   = NULL
    #  , offset
    #  , ...
  )
summary(Exam2.B.1.lm1)
DesignMatrix.lm1 <-
  model.matrix (
    object = Exam2.B.1.lm1
  )
DesignMatrix.lm1

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