View source: R/medltmle_CreateMedInputs.R
GetDefaultFormMediation | R Documentation |
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.
GetDefaultFormMediation( data, nodes, is.Qform, is.QLform, is.qzform, is.qLform, past, time.end, stratify, survivalOutcome, YisL = YisL, showMessage )
data |
Available data in a |
nodes |
List of available nodes, as created by |
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. |
Returns default Q or g formula if not specified.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.