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

Description Usage Arguments Value

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)


dobriban/pweight documentation built on May 15, 2019, 9:42 a.m.