File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1347,14 +1347,17 @@ impute_missing_recipe
1347
1347
hidden_print_cli(impute_missing_recipe)
1348
1348
```
1349
1349
1350
- Applying the recipe to the ` missing_cancer ` data frame fills in the missing entries with the mean values of their corresponding variables.
1350
+ We can now include this recipe in a ` workflow ` . To visualize what mean imputation does,
1351
+ let's just apply the recipe directly to the ` missing_cancer ` data frame using the ` bake ` function.
1352
+ The imputation step fills in the missing entries with the mean values of their corresponding variables.
1351
1353
1352
1354
``` {r 05-impute-bake}
1353
1355
imputed_cancer <- bake(impute_missing_recipe, missing_cancer)
1354
1356
imputed_cancer
1355
1357
```
1356
1358
1357
- Many other options for missing data imputation can be found in [ the ` recipes ` documentation] ( https://recipes.tidymodels.org/reference/index.html ) .
1359
+ Many other options for missing data imputation can
1360
+ be found in [ the ` recipes ` documentation] ( https://recipes.tidymodels.org/reference/index.html ) .
1358
1361
However you decide to handle missing data in your data analysis, it is always crucial
1359
1362
to think critically about the setting, how the data were collected, and the question you are answering.
1360
1363
You can’t perform that action at this time.
0 commit comments