g_fun: compute the dual constraint function: 1 if lambda <= l_prime,...

Description Usage Arguments Value

View source: R/g_fun.R

Description

compute the dual constraint function: 1 if lambda <= l_prime, and a phi(c_1) otherwise

Usage

1
g_fun(eta, gamma, lambda, l_prime)

Arguments

eta,gamma

prior mean and standard error (all inputs must be vectors of the same length)

lambda

the dual variable (a scalar)

l_prime

crossing points

Value

Value of the dual constraint (vector of same length as the inputs)


pweight documentation built on May 30, 2017, 2:54 a.m.