<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5441519817884072981.post6928478722917637158..comments</id><updated>2008-03-24T19:31:09.458-07:00</updated><title type='text'>Comments on Introduction to Bayesian Thinking: Inference for a Poisson Rate</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://learnbayes.blogspot.com/feeds/6928478722917637158/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5441519817884072981/6928478722917637158/comments/default'/><link rel='alternate' type='text/html' href='http://learnbayes.blogspot.com/2007/09/inference-for-poisson-rate.html'/><author><name>Jim Albert</name><uri>http://www.blogger.com/profile/12622333572321654094</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5441519817884072981.post-7925806448697063080</id><published>2008-03-24T19:31:00.000-07:00</published><updated>2008-03-24T19:31:00.000-07:00</updated><title type='text'>PS. sorry, obviously that should have been rpois(1...</title><content type='html'>PS. sorry, obviously that should have been rpois(1, 500*sample(lambda, 1))</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5441519817884072981/6928478722917637158/comments/default/7925806448697063080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5441519817884072981/6928478722917637158/comments/default/7925806448697063080'/><link rel='alternate' type='text/html' href='http://learnbayes.blogspot.com/2007/09/inference-for-poisson-rate.html?showComment=1206412260000#c7925806448697063080' title=''/><author><name>slowmo</name><uri>http://www.blogger.com/profile/17736007204837985875</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://learnbayes.blogspot.com/2007/09/inference-for-poisson-rate.html' ref='tag:blogger.com,1999:blog-5441519817884072981.post-6928478722917637158' source='http://www.blogger.com/feeds/5441519817884072981/posts/default/6928478722917637158' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5441519817884072981.post-1936642820553281060</id><published>2008-03-24T19:28:00.000-07:00</published><updated>2008-03-24T19:28:00.000-07:00</updated><title type='text'>Hi Jim,For the posterior predictive distribution y...</title><content type='html'>Hi Jim,&lt;BR/&gt;For the posterior predictive distribution you have:&lt;BR/&gt;&lt;BR/&gt;ys=rpois(1000,500*lambda)&lt;BR/&gt;&lt;BR/&gt;where lambda was previously calculated as:&lt;BR/&gt;&lt;BR/&gt;lambda=rgamma(1000,shape=y,rate=t)&lt;BR/&gt;&lt;BR/&gt;I'm a bit unsure about this. Isn't the rpois call only using the first element of the lambda vector ?  I would have thought to do something like this:&lt;BR/&gt;ys &lt;- numeric(1000)&lt;BR/&gt;for ( i in 1:1000 ) ys[i] &lt;- rpois(1, sample(lambda,1))&lt;BR/&gt;&lt;BR/&gt;Am I missing something ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5441519817884072981/6928478722917637158/comments/default/1936642820553281060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5441519817884072981/6928478722917637158/comments/default/1936642820553281060'/><link rel='alternate' type='text/html' href='http://learnbayes.blogspot.com/2007/09/inference-for-poisson-rate.html?showComment=1206412080000#c1936642820553281060' title=''/><author><name>slowmo</name><uri>http://www.blogger.com/profile/17736007204837985875</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://learnbayes.blogspot.com/2007/09/inference-for-poisson-rate.html' ref='tag:blogger.com,1999:blog-5441519817884072981.post-6928478722917637158' source='http://www.blogger.com/feeds/5441519817884072981/posts/default/6928478722917637158' type='text/html'/></entry></feed>