Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Anybody has dataset in book "A First Course in Bayesian Statistical Methods"?

$
0
0

Does anybody know how can I get the dataset used in book "A First Course in Bayesian Statistical Methods"?

I am reading the book "A First Course in Bayesian Statistical Methods" , by Peter Hoff. See the webpage at https://www.stat.washington.edu/people/pdhoff/book.php.

Now I am up to chapter 7, but I could not get the dataset the chapter is using. Would anybody give a hint?

This is the excerpt from the book about the data: A sample of twenty-two children are given reading comprehension tests before and after receiving a particular instructional method. Each student will then have two scores, Yi,1 and Yi,2 denoting the pre- and post-instructional scores respectively.

The webpage of the author has a link to code but I have no permission to access it. Nowhere on the internet can I find the data.

The following is the code to load the data from the page 113. R console reports errors on data(chapter7)

data ( chapter7 ) ; 
Y<−Y.reading
n<−dim(Y) [ 1 ] ; 
ybar<−apply (Y, 2 ,mean)
Sigma<−cov(Y) ; 
THETA<−SIGMA<−NULL

The following shows the error message R console gives. I am a newbie in R, but I kind of know that I need to install a package before I can run data(chapter7), but I don't know which package I shall install. Anybody has a hint?

> data(chapter7)

Warning message:
In data(chapter7) : data set ‘chapter7’ not found
>

Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>