X | R Documentation |
Model based prediction
X(
object,
formula = default_formula(object),
drop = varlevels_dont_clash(object, all.vars(formula)),
codingfun = contr.treatment.explicit
)
beta(object, fit = fits(object)[1])
object |
SummarizedExperiment or data.frame |
formula |
formula |
drop |
TRUE or FALSE |
codingfun |
function |
fit |
'limma', 'lm', 'lme', 'wilcoxon' |
beta matrix (nlevel x nfeature)
file <- system.file('extdata/atkin.metabolon.xlsx', package = 'autonomics')
object <- read_metabolon(file)
object %<>% fit_limma(block = 'Subject')
beta(object) # betas : nlevel x nfeature
X(object) # design : nlevel x nlevel
X(object) %*% beta(object) # response : nlevel x nfeature
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.