two.step.est {cohetsurr}R 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.


[Package cohetsurr version 2.0 Index]