GetDefaultFormMediation: GetDefaultFormMediation

View source: R/medltmle_CreateMedInputs.R

GetDefaultFormMediationR Documentation

GetDefaultFormMediation

Description

If QLform, QZform, qzform and gform are not specified, return default form. Each formula consists of all parent nodes except censoring and event nodes. If stratify=TRUE, do not include A nodes.

Usage

GetDefaultFormMediation(
  data,
  nodes,
  is.Qform,
  is.QLform,
  is.qzform,
  is.qLform,
  past,
  time.end,
  stratify,
  survivalOutcome,
  YisL = YisL,
  showMessage
)

Arguments

data

Available data in a Data.Frame format.

nodes

List of available nodes, as created by CreateNodes.

is.Qform

Logical indicating whether to specify general Q formula.

is.QLform

Logical indicating whether to specify Q formula for covariates.

is.qzform

Logical indicating whether to specify general Q formula for Z.

is.qLform

Logical indicating whether to specify general Q formula for L.

past

Number indicating Markov order for the conditional densities.

time.end

Total number of time points.

stratify

Logical indicating whether to straify.

survivalOutcome

Logical indicating if the outcome a survival outcome.

YisL

Logical indicating whether Y is a function of time-varying covariates.

showMessage

Logical indicating whether to show comments while executing.

Value

Returns default Q or g formula if not specified.


podTockom/medltmle documentation built on Aug. 9, 2022, 9:32 a.m.