eeFunCombined: Estimating Function for IPTW

Description Usage Arguments

Description

This function is to be passed into geex::m_estimate

Usage

1
2
3
eeFunCombined(data, trt_model_obj, num_fixefs, var_names, alphas, num_alphas,
  x_levels, integrate_alphas, randomization_probability, weight_type,
  average_treatment, oracle_fixefs = NULL, oracle_sigma = NULL)

Arguments

data

the dataframe. Will be coerced from "tbl_df" to data.frame.

trt_model_obj

Fitted model object from fitModel

When model_method = "oracle" see prepareOracle.

@return A list including

  • fixefs

  • sigma

  • ps_model_matrix

  • x_levels

num_fixefs

Number of fixed effect parameters from treatment model. Perhaps unncessaary coding.

var_names

A list of names for outcome, treatment, clustering, and perhaps participation.

alphas

the range of allocations or policies from 0 to 1.

When model_method == "oracle" then model_options must be a list with named numeric vectors fixefs and var_comp. See prepareOracle. For mixed effect model, note that that random intercept's term in the modeling formula (e.g., ( 1 | cluster_ID ) ) must be omitted from formula.

Arguments that can be passed through ... include:

  • integrate_alphas. Not yet supported.

  • verbose. Set to TRUE for more verbose messaging. Default FALSE.

  • contrast_type. Not yet supported.

  • keep_components. Set to TRUE for more verbose output. Default FALSE.

  • target_grids. User can supply target estimands with makeTargetGrids.

  • deriv_control. User can supply the deriv_control argument to m_estimate with setup_deriv_control.

num_alphas

The number of allocation parameters

x_levels

Default NULL unless there are factos in design matrix. From grab_design_levels.

integrate_alphas

Optional argument passed from estimateEffects

randomization_probability

Optional argument passed from estimateEffects. Usually 1. For example, 2/3 in Perez-Heydrich et al. (2014) Biometrics.

weight_type

Estimators as presented in Liu, Hudgens, and Becker-Dreps (2016) Biometrika. Select "HT" for unstabilized weights. Select "Hajek1" or "Hajek2" for stabilized weights. Select "HT_TV" for the estimators presented in Tchetgen Tchetgen and VanderWeele (2012) SMMR and Perez-Heydrich et al. (2014) Biometrics, which in general target estimands different from those in Liu, Hudgens, and Becker-Dreps (2016) Biometrika.

average_treatment

e.g. 0.37

oracle_fixefs

When model_method=="Oracle" then the oracle values of fixed effects are passed through this argument. Default NULL.

oracle_sigma

When model_method=="Oracle" then the oracle values of the random effect component is passed through this argument. Default NULL.


BarkleyBG/stabilizedinterference documentation built on May 23, 2019, 8:37 a.m.