Extract conditions from a design object
Source:R/baseline_model.R, R/covariate.R, R/design_generics.R, and 2 more
conditions.RdExtract conditions from a design object
Usage
# S3 method for class 'baseline_model'
conditions(x, ...)
# S3 method for class 'covariate_term'
conditions(
x,
drop.empty = TRUE,
expand_basis = FALSE,
style = c("canonical", "display"),
...
)
# S3 method for class 'covariate_convolved_term'
conditions(
x,
drop.empty = TRUE,
expand_basis = FALSE,
style = c("canonical", "display"),
...
)
conditions(
x,
drop.empty = TRUE,
expand_basis = FALSE,
style = c("canonical", "display"),
...
)
# S3 method for class 'event_term'
conditions(
x,
drop.empty = TRUE,
expand_basis = FALSE,
style = c("canonical", "display"),
...
)
# S3 method for class 'convolved_term'
conditions(x, ...)
# S3 method for class 'feature_term'
conditions(
x,
drop.empty = TRUE,
expand_basis = FALSE,
style = c("canonical", "display"),
...
)Arguments
- x
The object to extract conditions from.
- ...
Additional arguments.
- drop.empty
Logical whether to drop conditions with no events (default: TRUE). The
event_termandevent_modelmethods ignore it and always return the full grid of factor levels, including cells with no events;longnames(),shortnames()andcondition_map()honour it.- expand_basis
Logical whether to expand basis functions (default: FALSE).
- style
Naming style.
"canonical"returns fully qualified internal names, while"display"returns shorter user-facing labels.