predp: Calculate predicative probability density

View source: R/bayes-pp-fun.R

predpR Documentation

Calculate predicative probability density

Description

Calculate predicative probability density

Usage

predp(x, n, nmax, p0, a, b)

Arguments

x

number of respond

n

number of subjects already enrolled

nmax

max number of subjects to be enrolled

p0

hypothesized response rate

a, b

beta priors

Value

a tibble

Examples

predp(x = 3, n = 10, nmax = 30, p0 = 0.3, a = 1, b = 1)

zhuob/R4ClinicalTrial documentation built on Feb. 4, 2025, 1:15 a.m.