estimate_NDEpred: Estimator NDEpred

View source: R/D1a-estimate_NDEpred.R

estimate_NDEpredR Documentation

Estimator NDEpred

Description

Function that implements estimator NDEYpred

Usage

estimate_NDEpred(
  data,
  s.wt.var = NULL,
  cross.world = "10",
  boot.num = 999,
  boot.seed = NULL,
  boot.method = "cont-wt",
  boot.stratify = TRUE,
  a.var,
  y.c1.form = NULL,
  y.c0.form = NULL,
  y.cm1.form = NULL,
  y.cm0.form = NULL,
  nde0.c.form = NULL,
  nde1.c.form = NULL,
  y.c.form = NULL,
  y.cm.form = NULL,
  nde.c.form = NULL,
  y.link = "identity"
)

Arguments

data

A data frame.

s.wt.var

Optional, name of variable containing sampling weights.

cross.world

The cross-world condition involved in the effect decomposition of choice. Should be "10" if want the (NDE0, NIE1) pair, "01" if want the (NIE0, NDE1) pair, or "both" if want both decompositions.

boot.num

Number of bootstrap samples used for interval estimation, defaults to 999. If just want point estimate, set to 0.

boot.seed

Optional, specify bootstrap seed for reproducibility.

boot.method

Method for drawing bootstrap samples. Options: "cont-wt" for continuous weights bootstrap, and "resample" for bootstrap by simple resampling (i.e., integer weights bootstrap).

boot.stratify

Whether bootstrap samples are drawn stratified by treatment variable. Defaults to TRUE.

a.var

Name of treatment variable.

y.c1.form

blah

y.c0.form

blah

y.cm1.form

blah

y.cm0.form

blah

nde0.c.form

Model formula for E[NDE0|C]. Use any name for the response model in this formula, e.g., "nde.prox" or "effect".

nde1.c.form

Model formula for E[NDE1|C]. Use any name for response model in this formula, e.g., "nde.prox" or "effect".

y.c.form

blah

y.cm.form

blah

nde.c.form

Shortcut to specify the same formula for both E[NDE0|C] and E[NDE1|C] models.

y.link

blah

See Also

Other estimators: estimate_NDEpredR(), estimate_Y2predR(), estimate_Y2pred(), estimate_YpredMR(), estimate_Ypred(), estimate_psYpredMR(), estimate_psYpred(), estimate_wpCadj(), estimate_wpMRCadj(), estimate_wtCadj(), estimate_wtd()

Other additive-effect estimators: estimate_NDEpredR()


trangnguyen74/mediationClarity documentation built on May 4, 2023, 6:22 a.m.