View source: R/inclusion.exclusion.R
This function takes an under-construction data frame
of model matrix information, a phenotype, and control
inclusion/exclusion lists from load.inc.exc
, and
applies the filters requested by the inclusion/exclusion
lists. Filters only impact controls, and by extension
this function does nothing at all if provided with
a trait that isn't binary.
1 2 3 4 5 6 7 | apply.inc.exc(
df,
phenotype.name,
trait.is.binary,
control.inclusion.list,
control.exclusion.list
)
|
df |
data.frame, input model matrix data |
phenotype.name |
character vector, a column
name from |
trait.is.binary |
logical, an indicator whether the phenotype is binary (0/1, 0 == control) |
control.inclusion.list |
list, inclusion criteria
for controls in terms of other categorical variables from
|
control.exclusion.list |
list, exclusion criteria
for controls in terms of other categorical variables from
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.