treatmentSE: Standard error estimation for treatment effects estimated...

View source: R/treatmentSE.R

treatmentSER Documentation

Standard error estimation for treatment effects estimated with convenience samples

Description

Estimate standard errors with a simultaneous estimating equation approach for propensity adjusted estimates of a treatment effect when sampling weights are estimated using an auxiliary sample and the sampling weights are used to estimate the propensity score and the treatment effect

Usage

treatmentSE(estwt_fit, estprop_fit, fit_outcome, biased, outcome_family)

Arguments

estwt_fit

A glm object from the sampling weight estimation

estprop_fit

A svyglm object from the propensity score estimation

fit_outcome

A svyglm object from the treatment effect estimation

biased

An indicator of biased sample membership

outcome_family

Error distribution and link function to be used in the outcome model (See family for details of family function). Defaults to stats::gaussian

Value

Standard error estimates for treatment effect estimates that account for uncertainty in sampling-weight estimation, propensity score estimation, and estimating the treatment effect


oliviabern/estweight documentation built on Oct. 2, 2022, 7:50 p.m.