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

View source: R/parametric.est.R

parametric.estR Documentation

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

Description

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

Usage

parametric.est(data.control, data.treat, W.grid.expand)

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

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.