runes | R Documentation |
rx(x = unspecified(), ...) ## S3 method for class 'character' rx( x, side = character(), role = character(), tier = character(), label = character(), description = character(), distribution = character(), operation = character(), type = character(), subtype = character(), ... ) ## S3 method for class 'formula' rx( x, role = list(), tier = list(), label = list(), description = list(), distribution = list(), type = list(), subtype = list(), ... ) ## S3 method for class 'lm' rx( x, role = list(), tier = list(), label = list(), description = list(), distribution = list(), type = list(), subtype = list(), ... ) ## S3 method for class 'glm' rx( x, role = list(), tier = list(), label = list(), description = list(), distribution = list(), type = list(), subtype = list(), ... ) ## S3 method for class 'coxph' rx( x, role = list(), tier = list(), label = list(), description = list(), distribution = list(), type = list(), subtype = list(), ... ) ## S3 method for class 'model_fit' rx( x, role = list(), tier = list(), label = list(), description = list(), distribution = list(), type = list(), subtype = list(), ... ) ## S3 method for class 'rune' rx(x, ...) ## S3 method for class 'fmls' rx(x, ...) ## S3 method for class 'spell' rx(x, ...) ## Default S3 method: rx(x = unspecified(), ...) distill_rune(x = unspecified(), ...)
x |
An object of the following types that can be coerced to a
|
side |
states the side of the formula the variable belongs on:
|
role |
Specific roles the variable plays within the formula. These are of particular importance, as they serve as special terms that can effect how a formula is interpreted. Please see the Roles section below for further details. The options for roles are as below:
|
tier |
Grouping variable names for covariates or confounders for modeling terms together |
label |
Display-quality label describing the variable |
description |
Option for further descriptions or definitions needed for the rune, potentially part of a data dictionary |
distribution |
If its associated with a data vector, describes the distribution pattern of the original rune |
operation |
Modification of the term to be applied when combining with data |
type |
Type of variable, either categorical (qualitative) or continuous (quantitative) |
subtype |
How the variable itself is more specifically subcategorized, e.g. ordinal, continuous, dichotomous, etc |
class |
Class of the variable itself, either expected or measured, such
as |
For the arguments that would be dispatched for objects that are plural,
e.g. containing multiple terms such as a formula
object, the input should
be wrapped within a list()
.
For example, for the role argument, it would be written:
role = list(X ~ "exposure", M ~ "mediator", C ~ "confounder")
This applies for all others plural objects and arguments.
Specific roles the variable plays within the formula. These are of particular importance, as they serve as special runes that can effect how a formula is interpreted. The specialized options for roles are as below:
exposure or X(...)
outcome or O(...)
or placement of variable on LHS of formula
confounder or C(...)
mediator or M(...)
strata or S(...)
interaction or In()
Formulas can be condensed by applying their specific role to individual runes
as a function/wrapper. For example, y ~ X(x1) + x2 + x3
. This would signify
that x1
has the specific role of an exposure.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.