get_empiric_crm_skeleton_weights: Get posterior model weights for several empiric CRM...

View source: R/get_empiric_crm_skeleton_weights.R

get_empiric_crm_skeleton_weightsR Documentation

Get posterior model weights for several empiric CRM skeletons.

Description

Get posterior model weights for several empiric CRM skeletons, assuming a normal prior on the beta model parameter

Usage

get_empiric_crm_skeleton_weights(
  skeletons,
  events_at_dose,
  n_at_dose,
  prior = rep(1, nrow(skeletons))
)

Arguments

skeletons

matrix with one skeleton per row, so that the number of columns is the number of doses under investigation.

events_at_dose

integer vector of number of events at doses

n_at_dose

integer vector of number of patients at doses

prior

vector of prior model weights. Length should be same as number of rows in skeletons. Default is equal weighting.

Value

numerical vector, posterior weights of the skeletons.


escalation documentation built on June 27, 2024, 5:09 p.m.