File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -588,33 +588,30 @@ We now apply **IPD** to leverage all participants (labeled + unlabeled) while ad
588588>
589589> We can either provide a single, * combined* dataset to the ` data ` argument and the name of the column that gives the set labels in ` label ` :
590590>
591- > ``` r
592591> ipd_bmi_1 <- ipd(
593592> formula = obese_DXA - obese_BMI ~ Age + Sex + Race,
594593> data = combined,
595594> label = "set_label",
596595> model = "logistic",
597596> method = "pspa"
598597> )
599- > `` `
600598>
601599> ** or** we can provide the * labeled* set to ` data ` and the * unlabeled* set to ` unlabeled_data ` separately:
602600>
603- > `` `r
604601> ipd_bmi_2 <- ipd(
605602> formula = obese_DXA - obese_BMI ~ Age + Sex + Race,
606603> data = labeled,
607604> unlabeled_data = unlabeled,
608605> model = "logistic",
609606> method = "pspa"
610607> )
611- > `` `
612608
613609Now we can try to run the IPD model:
614610
615611``` {r, eval=FALSE}
616612# Note: This code chunk results in an error, but we have an informative warning
617613# We can try running it and see!
614+
618615ipd_bmi_fit <- ipd(
619616 formula = obese_DXA - obese_BMI ~ Age + Sex + Race,
620617 method = "pspa",
You can’t perform that action at this time.
0 commit comments