One-step, split sample estimator for E[Y(t)], E[Y(t)|R=1], E[Y(t)|R=0],
Source:R/est_s_t_y-methods.R, R/est_s_t_y.R
est_psi.RdEstimates study-specific and overall outcome means (and difference from baseline)
using cross-fitting with single index models (SIMs) and
nuisance models for treatment and outcome missingness (mgcv::gam). The function
also computes influence-function-based variances, confidence intervals, and
optional truncated influence-function diagnostics.
Usage
# S3 method for class 'est_psi'
print(x, rounding = 3, ...)
print_effects(object_t1, object_t0, rounding = 3, ...)
est_psi(
Y,
M,
R,
X,
t,
trt,
gamma,
fold,
seed,
IF_output,
simple_trunc,
quant,
kernel,
single_index_method,
method = "optim",
use_mave = TRUE,
s_t_y = NULL,
coef_g.fit = NULL,
coef_t_R0.fit = NULL,
coef_t_R1.fit = NULL,
coef_M_R0.fit = NULL,
coef_M_R1.fit = NULL
)Arguments
- x
An object of class
est_psi, as returned byest_psi.- rounding
Integer; number of decimal places to round estimates and variances in the printed output. Default is
3.- ...
Additional arguments (not currently used).
- object_t1
An object of class
est_psifor the treatment group (e.g.,trt = 1), as returned byest_psi.- object_t0
An object of class
est_psifor the control group (e.g.,trt = 0), as returned byest_psi.- Y
Numeric outcome vector. Missing values are internally replaced with
0prior to model fitting.- M
Binary indicator for observed outcome (
1= observed,0= missing).- R
Binary randomization consent indicator (1 for RCT, 0 for PPS).
- X
Data frame or matrix of baseline covariates.
- t
Treatment assignment vector.
- trt
Treatment level for which the target estimand is computed.
- gamma
Numeric vector of sensitivity parameters.
- fold
Number of cross-fitting folds.
- seed
Optional integer random seed for fold assignment. Use
NULLto leave RNG state unchanged.- IF_output
Logical; if
TRUE, include influence-function vectors in the returned list.- simple_trunc
Logical; if
TRUE, apply quantile truncation to inverse probability weights. IfFALSE, apply IF truncation diagnostics.- quant
Numeric in
(0, 1)used as the upper quantile for simple weight truncation whensimple_trunc = TRUE.- kernel
Characters; Kernel used for SIMs.
K2_Biweightfor Epanechnikov kernel,dnormfor Gaussian kernel.- single_index_method
Characters; Three implementations for SIMs:
fixed_bandwidthfor setting bandwidth to 1,fixed_coeffor setting the first coefficient to 1, andnorm1coeffor setting the norm of coefficients to 1.- method
Characters; Optimization method used for SIMs. Choices are:
optim,nlminb,nmk. Note that method is set tooptimif single_index_method=norm1coef.- use_mave
Logical; if
TRUE, use Minimum Average Variance Estimation (MAVE) method for initial coefficients value for SIMs. IfFALSE, use sliced inverse regression. Default isTRUE.- s_t_y
A function of Y in the exponential tilting model. If NULL, s_t_y is set to pnorm((y-60)/25).
- coef_g.fit
Optional starting values for a treatment model; currently retained for interface compatibility.
- coef_t_R0.fit
Optional starting coefficients for treatment model fit in
t=trtandR = 0stratum.- coef_t_R1.fit
Optional starting coefficients for treatment model fit in
t=trtandR = 1stratum.- coef_M_R0.fit
Optional starting coefficients for missingness model fit in
R = 0stratum.- coef_M_R1.fit
Optional starting coefficients for missingness model fit in
R = 1stratum.
Value
A named list of class est_psi that contains estimates and uncertainty summaries for each value in
gamma. Core elements include point estimates (est, est_R1, est_R0), variance
estimates (var, var_R1, var_R0), and confidence interval bounds (lowerCI*, upperCI*).
Additional components depend on simple_trunc and IF_output:
simple_trunc = TRUE: returns quantile-weight-truncated summaries only.simple_trunc = FALSE: additionally returns truncated summaries and truncated IF objects when requested.IF_output = TRUE: includes influence-function lists (IF*) and, when relevant, truncated IF lists (IF_trunc*).