Skip to content

Commit 3b4ab63

Browse files
committed
Updating Unit 02 to build
1 parent 77ceff0 commit 3b4ab63

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

vignettes/Unit02_BMIvDXA.Rmd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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
613609
Now 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+
618615
ipd_bmi_fit <- ipd(
619616
formula = obese_DXA - obese_BMI ~ Age + Sex + Race,
620617
method = "pspa",

0 commit comments

Comments
 (0)