Step 3 Check whether multiple imputation is likely to be a valid
diff --git a/articles/midocdemoShiny.html b/articles/midocdemoShiny.html
index d8347f6..c039dd3 100644
--- a/articles/midocdemoShiny.html
+++ b/articles/midocdemoShiny.html
@@ -168,7 +168,7 @@
+
Returning to our worked example, we will use indicator variable “R”
to denote the missingness of BMI at age 7 years (for example, R=1 if BMI
at age 7 years is observed, and 0 otherwise). In this specific example,
@@ -196,7 +196,7 @@
You can draw your own DAG using a Shiny app, by editing the
text in the box below.
-
+
As a final check of our mDAG, we will use the midoc
function exploreDAG to explore whether relationships in the
dataset are consistent with the proposed mDAG, specifying both our mDAG
@@ -254,7 +254,7 @@
+
Tips for specifying a “missingness” DAG
First specify the DAG for the analysis model, as it would be if
@@ -368,13 +368,11 @@
+
Step 3 Check whether multiple imputation is likely to be a valid
@@ -562,7 +560,7 @@
+
Step 4 Check that all relationships are correctly specified
@@ -661,7 +659,7 @@
Ste
set to FALSE). Further note that if you do not upload a
file, the default bmi dataset will be
analysed.
-
+
Tips for imputation model variable selection
@@ -775,7 +773,7 @@
Step 5 Pe
plot is set to FALSE). Further note that if
you do not upload a file, the default bmi dataset will be
analysed.
-
+
Note Given multiple partially observed variables, we
can specify a list of imputation models (one for each partially observed
variable) in proposeMI (although note that the Shiny app
@@ -827,7 +825,7 @@
Step 5 Pe
Shiny app, by uploading your dataset (in CSV format) and editing the
text in the box below. Note that if you do not upload a file, the
default bmi dataset will be analysed.
-
+
Illustration using our worked example
diff --git a/pkgdown.yml b/pkgdown.yml
index dcefc19..b9c6e7c 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -4,7 +4,7 @@ pkgdown_sha: ~
articles:
midoc: midoc.html
midocdemoShiny: midocdemoShiny.html
-last_built: 2024-08-01T15:31Z
+last_built: 2024-08-05T08:01Z
urls:
reference: https://elliecurnow.github.io/midoc/reference
article: https://elliecurnow.github.io/midoc/articles
diff --git a/reference/checkcra.html b/reference/checkcra.html
index 5b5581d..2a5636f 100644
--- a/reference/checkcra.html
+++ b/reference/checkcra.html
@@ -1,11 +1,11 @@
Inspect complete records analysis model — checkCRA • midoc
+analysis will allow unbiased estimation of the estimand(s) of interest,
+including regression parameters, associations, and causal effects.">
Skip to contents
@@ -45,8 +45,8 @@
Inspect complete records analysis model
Check complete records analysis is valid under the proposed analysis model
and directed acyclic graph (DAG). Validity means that complete records
-analysis will allow unbiased estimation of regression parameters,
-associations, and causal effects.
+analysis will allow unbiased estimation of the estimand(s) of interest,
+including regression parameters, associations, and causal effects.
# Example DAG for which complete records analysis is not valid
+checkCRA(y="bmi7", covs="matage", r_cra="r", mdag="matage -> bmi7 mated -> matage mated -> bmi7 sep_unmeas -> mated sep_unmeas -> r")#> Based on the proposed directed acyclic graph (DAG), the analysis model
@@ -118,6 +119,8 @@
# Example DAG for which multiple imputation is valid
+checkMI(dep="bmi7", preds="matage mated pregsize", r_dep="r", mdag="matage -> bmi7 mated -> matage mated -> bmi7 sep_unmeas -> mated sep_unmeas -> r pregsize -> bmi7 pregsize -> bwt sep_unmeas -> bwt")#> Based on the proposed directed acyclic graph (DAG), the incomplete #> variable and its missingness indicator are independent given imputation #> model predictors. Hence, multiple imputation methods which assume data #> are missing at random are valid in principle.
+
+# Example DAG for which multiple imputation is not valid, due to a collidercheckMI(dep="bmi7", preds="matage mated bwt", r_dep="r", mdag="matage -> bmi7 mated -> matage mated -> bmi7 sep_unmeas -> mated sep_unmeas -> r pregsize -> bmi7 pregsize -> bwt sep_unmeas -> bwt")
@@ -124,13 +127,6 @@