4 Chapter 14

This is the code for Chapter 14

4.2 Program 14.2

## # A tibble: 1 x 3
##     psi    estimate p.value
##   <dbl>       <dbl>   <dbl>
## 1  3.45 -0.00000190   1.000
## # A tibble: 31 x 3
##      psi  estimate p.value
##    <dbl>     <dbl>   <dbl>
##  1   3.4  0.000862   0.922
##  2   3.5 -0.00102    0.909
##  3   3.3  0.00274    0.755
##  4   3.6 -0.00290    0.744
##  5   3.2  0.00461    0.598
##  6   3.7 -0.00480    0.592
##  7   3.1  0.00647    0.457
##  8   3.8 -0.00670    0.457
##  9   3    0.00833    0.337
## 10   3.9 -0.00860    0.342
## # … with 21 more rows
## # A tibble: 1 x 3
##     psi conf.high conf.low
##   <dbl>     <dbl>    <dbl>
## 1   3.4       4.4      2.6

## # A tibble: 1 x 1
##     psi
##   <dbl>
## 1  3.45
## # A tibble: 1 x 5
##   statistic     bias std.error conf.low conf.high
##       <dbl>    <dbl>     <dbl>    <dbl>     <dbl>
## 1      3.45 -0.00202     0.473     2.51      4.38