View source: R/pfDesign_sample.R
pdSampleSingle | R Documentation |
Sample with a mixture prior for binary outcomes
pdSampleSingle( vec_y, prior_smps = NULL, epsilon = 1, mix_ab = c(0.25, 0.25), nsmps = 5000, chains = 4, warmup = 1000, ... )
mix_ab |
beta shape parameters (a, b) for a non-informative prior |
... |
optional parameters for |
vecy |
vector of binary outcomes |
iter |
number of thetas to draw when there is no prior samples. otherwise, draw the same number of thetas as in the prior samples |
epsillon |
mixture proportion from the prior samples. ignored if prior_smps is NULL |
samples of theta
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.