Re: [R] Bayesian estimate of prevalence with an imperfect test

2013-07-07 Thread brechtdv
Dear Lian, You might be interested to hear that a new package is available on CRAN to perform Bayesian estimation of true prevalence from apparent prevalence: http://cran.r-project.org/package=prevalence http://cran.r-project.org/package=prevalence The function 'truePrev()', that estimates

Re: [R] Bayesian estimate of prevalence with an imperfect test

2012-01-06 Thread LianD
Thanks Bert I've been through my variables again and have managed to get the code working - shouldn't have tried to deal with it at the end of the day yesterday! all the best Lian -- View this message in context:

[R] Bayesian estimate of prevalence with an imperfect test

2012-01-05 Thread LianD
Hi all! I'm new to this forum so please excuse me if I don't conform perfectly to the protocols on this board! I'm trying to get an estimate of true prevalence based upon results from an imperfect test. I have various estimates of se/sp which could inform my priors (at least upper and lower

Re: [R] Bayesian estimate of prevalence with an imperfect test

2012-01-05 Thread Bert Gunter
Lian: I doubt whether anyone on this list would be willing to wade through your code to track this down, although some smart folks may be able to guess what the issue is (alas for you, I am not one of them!). So now is as good a time as any to start learning about R's debugging tools. First, you