- FEV Data Example
- Independence Priors
- Gibbs Sampling
- Group Exercise
FEVdata <- read.table("http://www.ics.uci.edu/~wjohnson/BIDA/Ch7/FEVdataAge10to19.txt" ,header=T, sep="\t") attach(FEVdata) options(contrasts=c("contr.treatment","contr.poly")) head(FEVdata)
## Age FEV Smoke ## 1 19 5.102 0 ## 2 19 3.519 1 ## 3 19 3.345 1 ## 4 18 2.906 0 ## 5 18 3.082 0 ## 6 18 4.220 0
R
, we can see that \[
\tau \stackrel{approx}{\sim} \text{Gamma}(1.73, 0.78).
\]R
with a Gibbs sampler.