File: Chapter.5.4.R

package info (click to toggle)
r-cran-learnbayes 2.15.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,864 kB
  • sloc: sh: 15; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#####################################################
# Section 5.4 A Beta-Binomial Model for Overdispersion
#####################################################

 library(LearnBayes)

 data(cancermortality)

 mycontour(betabinexch0,c(.0001,.003,1,20000),cancermortality,
   xlab="eta",ylab="K")

S=readline(prompt="Type  <Return>   to continue : ")

windows()
 mycontour(betabinexch,c(-8,-4.5,3,16.5),cancermortality,
   xlab="logit eta",ylab="log K")