estimate_MsimYpred: Estimator MsimYpred

View source: R/C5a-estimate_MsimYpred.R

estimate_MsimYpredR Documentation

Estimator MsimYpred

Description

Function that implements estimator MsimYpred

Usage

estimate_MsimYpred(
  data,
  s.wt.var = NULL,
  cross.world = "10",
  effect.scale = "additive",
  a.var,
  m.c1.form = NULL,
  m.c0.form = NULL,
  m.c.form = NULL,
  m.dist = NULL,
  y.c1.form = NULL,
  y.c0.form = NULL,
  y.c.form = NULL,
  y.cm1.form = NULL,
  y.cm0.form = NULL,
  y.cm.form = NULL,
  y.link = "identity",
  boot.num = 999,
  boot.seed = NULL,
  boot.method = "cont-wt",
  boot.stratify = TRUE,
  point.reps = 100
)

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.

effect.scale

The scale of effect of choice. Defaults to "MD" (i.e., mean/risk difference or additive). If outcome is non-negative, also allows "mean ratio" (which could also be specified as "ratio", "MR", "risk ratio", "rate ratio", "RR"). If outcome is binary or bounded within the (0,1) interval, also allows "odds ratio" (which could also be specified as "OR").

a.var

Name of treatment variable.

m.c1.form, m.c0.form

blah

m.c.form

blah

m.dist

blah

y.c1.form

blah

y.c0.form

blah

y.c.form

blah

y.cm1.form

blah

y.cm0.form

blah

y.cm.form

blah

y.link

blah

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.

point.reps

blah


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