How to use the Easy Filter constructor
The following examples will show you how you can create your own filters in a (relatively) simple manner:
Filtering a continuous column
This example shows how you can use the easy filter to check for equivalence or greater/less than and the like.
We will use the included dataset "Kitchen Rolls" and will filter on the PartipantNumber-column.
The steps taken in the video will be outlined underneath.
- First we click once the required column (ParticipantNumber) to add it to the overview.
- Then we select '=' or equivalence, which is added to or previously selected column.
- The empty space to the right of the equivalence can be filled up by dropping different other operators or columns, but for now we click it and then type the number '2'.
- Now we apply the filter by pressing the appropriate button and we will see that now only the row where ParticipantNumber is 2 is active.
- After that we select the '2' again to be able to edit it again. By clearing it completely we could remove it, but for now we just change it to '3'.
- Once more we apply our pass-through filter and again only the corresponding row is active.
- To select more than one row we can make use of the less-than operator or '<' and so we remove our constructed formula and create a new one.
- We add the ParticipantNumber-column again
- Then add '<' and enter '5' in the empty righthand side.
- Applying the filter makes the result immediately visible.
- Next we clear everything and the animation repeats.
Filtering one or more categoricals
This example shows you how to filter a certain categorical variable alone and in combination with another. We will do this through both the variable window and the easy filter
- First we open the variable window for the 'Sex' column by clicking the header.
- Here we turn off the 'M' value, we immediately see that all corresponding rows are turned inactive.
- Ticking 'M' back on again and turning off 'F' gives us the opposite situation.
- Next we look at a different categorical, after making sure both 'M' and 'F' are active, we open the variables window for 'Student'.
- Here we untick 'N' and we see that the only visible row containing this is turned inactive.
- This we combine with unticking 'M' in 'Sex' and see that now the rows corresponding with either 'M' or 'N' are both inactive.
- To do this with the easy filter constructor is also possible and to show this we first clean up the current selection by choosing "erase all".
- Then we open the easy filter and enter 'Sex', followed by '=' and we enter the text 'F' on the empty righthand side.
- To combine this with the other categorical we enter a new formula below by selecting 'Student', '=' and entering 'N'.
- After choosing 'Apply pass-through filter' we see only one row active where these values are matched.
- To show the opposite we remove the last formula and replace it with one that makes 'Student' be inequal to 'N'.
- After applying we now see that only the one row previously active is now the only inactive one, as expected.
- Next we clear everything and the animation repeats.
Filtering on standard deviation
This example shows you how to filter based on being larger than it's own standard deviation.
- We will filter 'mean_NEO', so we enter it as the basis of our first formula.
- Clicking the '>' symbol adds it to the formula.
- Because we want to check for the standard deviation we click the corresponding σ symbol from the function overview to the right.
- We then drop another copy of 'mean_NEO' into this and apply our filter.
- Now we see that only rows 4 and 5 are inactive.
- To see the contrast with a larger value we multiply the standard deviation by adding '*' and typing 2 on the righthand side.
- After choosing apply we now see that only row 2 remains active.
- After that the filter is cleared and the animation repeats.
Of course you can also use the other functions in the list on the right in combination with the operators above to check for many desired values.
Conditioned filtering - simple example
This is a simple example to show how you can use conditional filtering. In this case we just want the rows that show the maximum age.
- We will filter 'Age', so we enter it as the basis of our first formula.
- Clicking the '=' symbol adds it to the formula.
- Then we add 'max(Age)' and apply it.
- We now see there is one active row showing a 51 year old female.
- To get the maximum age per sex we add the 'condition on'-operator or '|' followed by 'Sex'.
- After applying we see that besides the woman there is now also an active row with a 38 year old male.
Conditioned filtering - outliers per group
This is a simple example to show how you can filter outliers per group using conditional filtering.
- We will filter the absolute value of 'extra'.
- To this is added '>' and σ for the standard deviation
- 'extra' is placed inside σ() and the result multiplied by 2.
- After applying we see that there are 3 active rows that pass this criterium, all in group '2'
- To get the outliers per group we add the 'condition on'-operator or '|' followed by 'group'.
- After applying we see that there is one more active row, this time from group '1'.