eval.target | R Documentation |
This function estimates the true value of the previously set target parameter (set.targetE
or set.targetMSM
) using the DAG object and either 1) data
: list of action-specific simulated data.frames
; or 2) actions
; or 3) when data
and actions
are missing, using all distinct actions previously defined on the DAG
object.
eval.target(
DAG,
n,
data,
actions,
rndseed = NULL,
verbose = getOption("simcausal.verbose")
)
DAG |
DAG object with target parameter set via |
n |
Number of observations to simulate (if simulating full data), this is overwritten by the number of observations in each data |
data |
List of action-specific |
actions |
Character vector of action names which play the role of the data generating mechanism for simulated data when argument |
rndseed |
Seed for the random number generator. |
verbose |
Set to |
For examples and additional details see documentation for set.targetE
or set.targetMSM
For targetE returns a vector of counterfactual means, ATE or ATR; for targetMSM returns a named list with the MSM model fit ("msm"
),
MSM model coefficients ("coef"
), the mapping of the MSM summary terms S()
to the actual variable names used in the data, ("S.msm.map"
),
and the long format full data that was used for fitting this MSM "df_long"
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.