Open lianos opened 5 years ago
Imagine an experiment with "cell_type" and "treatment" covariates. To analyze this in a simple way, we often just create a third variable that is the concatenation of the two, eg.
"cell_type"
"treatment"
group <- paste(cell_type, treatment, sep = "_")
You can then do:
flm <- flm_def(samples, covariate = "group", numer = "cellA_treated", denom = "cellA_untreated")
But you could imagine rather doing this:
flm <- flm_def(samples, covariate = c("cell_type", "treatment"), numer = "cellA_treated", denom = "cellA_untreated")
so we don't have to explicitly create group anywhere.
group
Imagine an experiment with
"cell_type"
and"treatment"
covariates. To analyze this in a simple way, we often just create a third variable that is the concatenation of the two, eg.You can then do:
But you could imagine rather doing this:
so we don't have to explicitly create
group
anywhere.