pdSampleSingle: Sample with a mixture prior for binary outcomes

View source: R/pfDesign_sample.R

pdSampleSingleR Documentation

Sample with a mixture prior for binary outcomes

Description

Sample with a mixture prior for binary outcomes

Usage

pdSampleSingle(
  vec_y,
  prior_smps = NULL,
  epsilon = 1,
  mix_ab = c(0.25, 0.25),
  nsmps = 5000,
  chains = 4,
  warmup = 1000,
  ...
)

Arguments

mix_ab

beta shape parameters (a, b) for a non-informative prior

...

optional parameters for pdStan

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

Value

samples of theta


olssol/pfDesign documentation built on March 27, 2022, 4:30 p.m.