pred_prob_binom: Predictive Probability: Binomial Model

View source: R/pred_prob_binom.R

pred_prob_binomR Documentation

Predictive Probability: Binomial Model

Description

Computes the predictive probability for the PPC_binom() function.

Usage

pred_prob_binom(
  n,
  alpha_1,
  beta_1,
  alpha_2,
  beta_2,
  alpha_D,
  beta_D,
  xi,
  q,
  M
)

Arguments

n

The sample size.

alpha_1, beta_1

The parameters of the first beta prior.

alpha_2, beta_2

The parameters of the second beta prior.

alpha_D, beta_D

The parameters of the design beta prior.

xi

A constant used to compute the predictive probability.

q

The order of the Wasserstein distance.

M

The number of Monte Carlo replications.

Value

A numeric value.

Note

This is an internal function.

Author(s)

Michele Cianfriglia michele.cianfriglia@uniroma1.it


michelecianfriglia/SampleSizeWass documentation built on Feb. 28, 2023, 8:56 a.m.