knitr::opts_chunk$set(echo = TRUE)
This package is designed to implement the PRML classifier and PRML filter proposed by Chen and Tokdar (2019).
prml_filter()
calculate Bayes factor of Poisson versus Poisson mixtures.prml_classifier()
calculate posterior probabilities under each Poisson mixtures hypotheses.prml_classifier_f()
calculate posterior probabilities under each Poisson mixtures hypotheses and density estimation of mixing density.prml_tests()
output the result of PRML classifier prml_classifier()
as well as PRML filter prml_filter()
prml_tests_f()
output the result of PRML classifier prml_classifier_f()
as well as PRML filter prml_filter()
For real data anlaysis, we only need to use function prml_tests()
, which take the ${Y^A,Y^B,Y^{AB}}$ as input. ${Y^A,Y^B,Y^{AB}}$ represent spike count data coming from the repeated trials under condition ${A,B,AB}$ (single-stimulus trial A, B and dual-stimuli trial AB). We provide a sample code on
prml_tests()
; If you want to obtain density estimation of the mixing density, replace prml_tests()
with prml_tests_f()
in the sample code. See Articles for details.
Not yet available in cran. Install the development version for now.
install.packages("prml")
devtools::install_github("yunranchen/prml")
A classification on the four possible hypotheses before PRML filtering and after PRML filtering process.
knitr::include_graphics("vignettes/images/plot.png")
A density estimation on the mixing density function. (Here only present the 'Mixture' and 'Intermediate' hypotheses.)
knitr::include_graphics("vignettes/images/plot_pdf.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.