Exam1.2: Example1.2 from Generalized Linear Mixed Models: Modern...

Description Author(s) References See Also Examples

Description

Exam1.2 is used to see types of model effects by plotting regression data

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.2

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#-------------------------------------------------------------
## Plot of multi-batch regression data discussed in Article 1.3
#-------------------------------------------------------------
data(Table1.1)
Table1.2$Batch <- factor(x  = Table1.2$Batch)
library(ggplot2)
Plot  <-
 ggplot(
   data    = Table1.2
   , mapping = aes(y = Y, x =X,colour=Batch,shape=Batch)
 )      +
 geom_point() +
 geom_smooth(
   method  = "lm"
   , fill    =  NA
 ) +
 labs(
   title   = "Plot of Multi Batch Regression data"
 )        +
 theme_bw()

MYaseen208/StroupGLMM documentation built on May 7, 2019, 2:07 p.m.