View source: R/registration_model.R
registration_model | R Documentation |
This function defines the statistical model that will be used for computing
the block correlation as well as pairwise statistics. It is useful to check
it in case your sample-level covariates need to be casted. For example, an
integer()
variable might have to be casted into a factor()
if you wish
to model it as a categorical variable and not a continuous one.
registration_model(
sce_pseudo,
covars = NULL,
var_registration = "registration_variable"
)
sce_pseudo |
The output of |
covars |
A |
var_registration |
A |
The output of model.matrix()
which you can inspect to verify that
your sample-level covariates are being properly modeled.
Other spatial registration and statistical modeling functions:
registration_block_cor()
,
registration_pseudobulk()
,
registration_stats_anova()
,
registration_stats_enrichment()
,
registration_stats_pairwise()
,
registration_wrapper()
example("registration_pseudobulk", package = "spatialLIBD")
registration_mod <- registration_model(sce_pseudo, "age")
head(registration_mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.