nmab_giplus: Calculate the GI+ index for a single arm (normal rewards)

View source: R/nmab.R

nmab_giplusR Documentation

Calculate the GI+ index for a single arm (normal rewards)

Description

The index is an upper bound for GI.

Usage

nmab_giplus(Sigma, n, gamma, tol = 5e-04, ub = NA, upper = FALSE)

Arguments

Sigma

Numeric. Value of Sigma for the arm (Bayesian reward).

n

Numeric > 0. Value of n for the arm (Bayesian number of observation).

gamma

Numeric in (0, 1). Reward discount factor.

tol

Numeric > 0. Absolute accuracy required.

ub

Optional upper bound for the index.

upper

If TRUE, the upper end of the interval is returned, otherwise the midpoint.

Value

A vector of GI values.


jedwards24/gittins documentation built on Oct. 13, 2023, 4:17 p.m.