two.step.est: Estimates the proportion of treatment effect explained as a...

View source: R/two.step.est.R

two.step.estR Documentation

Estimates the proportion of treatment effect explained as a function of multiple baseline covariates, W, using a two step, semiparametric model.

Description

Estimates the proportion of treatment effect explained as a function of multiple baseline covariates, W, using a two step, semiparametric model in a randomized treatment setting.

Usage

two.step.est(data.control, data.treat, W.grid.expand.function)

Arguments

data.control

dataframe containing data from the control group, specifically the outcome Y, the surrogate S, and the baseline covariates W

data.treat

dataframe containing data from the treamtent group, specifically the outcome Y, the surrogate S, and the baseline covariates W

W.grid.expand.function

expanded version of the W grid of baseline covariates, where each row is a specific combination of the covariates for which the estimates should be provided

Value

A grid of estimates is returned of the proportion of treatment effect explained, the overall treatment effect, and the residual treatment effect for the given baseline covariate combinations.


cohetsurr documentation built on April 11, 2025, 6:10 p.m.