S_p: Constraint function

View source: R/objective_functions.R

S_pR Documentation

Constraint function

Description

Computes the constraint function S_p, which ensures that the learned policy satisfies a constraint. This function enforces a limit on the expected impact of treatment via delta_Z.

Usage

S_p(psi, X, beta, alpha, centered, delta_Nu)

Arguments

psi

A function that takes an input X and returns a numeric vector with values in the range [-1, 1].

X

A matrix of covariates of size n x d (input data in ⁠[0,1]⁠).

beta

A non-negative numeric scalar controlling the sharpness of the probability function (0.05 by default).

alpha

A numeric scalar representing the constraint tolerance (in ⁠[0,1/2]⁠, 0.1 by default).

centered

A logical value indicating whether to apply centering in sigma_beta (FALSE by default).

delta_Nu

A function of X that determines the contrast between adverse event outcomes.

Value

A numeric scalar representing the constraint function value.


PLUCR documentation built on March 30, 2026, 5:08 p.m.