| expose_param | R Documentation |
Expose a model parameter of xpdb objects in an xpose_set
expose_param(xpdb_s, ..., .problem = NULL, .subprob = NULL, .method = NULL)
xpdb_s |
< |
... |
< |
.problem |
< |
.subprob |
< |
.method |
< |
The parameter returned will be top-level, and to avoid conflicting
names will be prepended by .. (e.g., ..ome1). The selector
used to fetch the parameter will be used in this .. name. If
a better name is preferred, there are convenient renaming functions
from dplyr where needed.
When using parameter selectors, quotations should be used for more
complex names, like "OMEGA(1,1)", since these may be read incorrectly
otherwise.
The untransformed parameter is used for this exposure. The get_prm
call uses transform=FALSE.
An xpose_set object with the parameter exposed
expose_property()
pheno_set %>%
expose_param(the1) %>%
reshape_set()
pheno_set %>%
expose_param(RUVADD, "OMEGA(1,1)") %>%
reshape_set()
# This function is useful for generating a model-building table
pheno_set %>%
# Determine longest lineage
select(all_of(xset_lineage(.))) %>%
# Select key variability parameters
expose_param(RUVADD, "OMEGA(1,1)") %>%
# Make sure all models have descriptions
focus_qapply(desc_from_comments) %>%
# Extract description
expose_property(descr) %>%
# Transform to tibble
reshape_set() # %>% pipe into other processing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.