View source: R/process_probability.R
| learn_threshold | R Documentation |
This function estimates the optimal decision threshold for treatment assignment using cross-fitted nuisance function estimates and targeted maximum likelihood estimation (TMLE). The procedure evaluates candidate thresholds based on empirical performance criteria, selecting the threshold that maximizes the policy value under constraint satisfaction.
learn_threshold(theta, X, A, Y, Xi, folds, alpha)
theta |
A numeric matrix (k x d). Each row is from FW inner minimization, used to recover an extremal point for convex function construction. |
X |
A matrix or data frame of covariates of size n x d (input data in |
A |
A binary vector or matrix of length n indicating treatment assignment (0 or 1). |
Y |
A numeric vector or matrix of length n representing primary outcomes (in |
Xi |
A numeric vector or matrix of adverse events outcomes. |
folds |
A list of cross-validation folds (e.g., a list of indices for each fold). |
alpha |
A numeric scalar representing the constraint tolerance (in |
A numeric value corresponding to the optimal threshold chosen from the candidate sequence.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.