Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion vignettes/filtro.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ library(modeldata)

This document demonstrates some basic uses of filtro. We'll need to load a few packages:


```{r}
#| label: setup
library(filtro)
Expand Down Expand Up @@ -103,6 +102,15 @@ The `show_best_score_prop()` function returns the best score for a single metric
ames_aov_pval_res |> show_best_score_prop(prop_terms = 0.2)
```

We can also fill the safe value first, then apply any of the filtering methods.

```{r}
# Fill safe value, then show best score
# ames_aov_pval_res |> fill_safe_value() |> show_best_score_prop(prop_terms = 0.2)
ames_aov_pval_res <- ames_aov_pval_res |> fill_safe_value()
ames_aov_pval_res |> show_best_score_prop(prop_terms = 0.2)
```

## A filtering example for scores *plural*

To handle multiple scores, we first create multiple score class objects, and then use the `fit()` method with the standard formula to compute the scores.
Expand Down
Loading