Learn R Programming

precmed (version 1.1.0)

onearmglmmean.dr: Doubly robust estimators of the coefficients in the two regression

Description

Doubly robust estimators of the coefficients in the two regression

Usage

onearmglmmean.dr(y, x.cate, trt, ps, f.predictor)

Value

Doubly robust estimators of the regression coefficients beta_r in the doubly robust estimating equation where r = 0, 1 is treatment received; vector of size p + 1 (intercept included)

Arguments

y

Observed outcome; vector of size n

x.cate

Matrix of p baseline covariates; dimension n by p

trt

Treatment received; vector of size n units with treatment coded as 0/1

ps

Estimated propensity scores for all observations; vector of size n

f.predictor

Initial prediction of the outcome (expected number of relapses for one unit of exposure time) conditioned on the covariates x for one treatment group r; mu_r(x), step 1 in the two regression; vector of size n