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)


dobriban/pweight documentation built on Oct. 6, 2018, 4:38 a.m.