Description Usage Arguments Details Value Examples
This function is designed to assist in the application and documentation
of inclusion and exclusion criteria to clinical or epidemiologic datasets.
It allows the analyst to define a series of functions, each corresponding
to one criteria, and then apply them to the dataset.
It is expected that in many analyses certain inclusion/exclusion criteria
or groups of criteria may be applied sequentially. This function
allows analysts to specify filtering functions in ...
in the order
that they should be applied. The subsequent output of filter_data
is a list
containing the newly filtered
dataset and a report of total observations removed for each criteria.
1 |
data |
a |
... |
functions or lists of functions to be applied to |
The input of this function is an unfiltered dataset (data
) and
a series of functions or list(s) of functions accepted by ...
. Each
function specified in ...
should apply one inclusion/exclusion
criteria to data
. Functions specified in
...
should take data
as the input, remove observations (rows)
that failed to meet a certain inclusion criteria (or which meet a certain
exclusion criteria), and return a data.frame
of the same or
fewer rows as data
.
Each functions may be supplied to ...
as either 1) a single
function; or 2) as a list of functions. Each argument captured by
...
will be treated as a separte phase of the data-filtering process,
with each phase being applied sequentially to the dataset. This may affect
the number of observations listed as failing individual inclusion/exclusion
criteria within reports contained in filter_data
's output. It will
not affect the the filtered dataset generated in filter_data
's output.
Several criteria may be applied simultaneously as part of a single filtering
"phase". To do this, multiple functions may be specified within a list
captured by ...
. Functions supplied directly to ...
will be treated as their own individual phase in the data-filtering process.
Descriptions of inclusion/exclusion criteria may be specified by supplying
functions to ...
as named arguments or named lists.
A list
containing the filtered dataset, a criteria-specific
report, and a phase-specific report
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.