ASCA_trim_vars.Rd
ASCA_trim_vars
ASCA_trim_vars(decomposition, keep = NULL)
a list of decomposition matrices produced by `ASCA_decompose` or `ASCA_combine_terms`
a vector of numbers or names indicating the variables which should be kept
a list of reduced matrices
## load the data
data("synth_count_data")
## perform the ASCA decomposition
dec_test <- ASCA_decompose( d = synth_count_data$design,
x = synth_count_data$counts,
f = "time + treatment + time:treatment",
glm_par = list(family = poisson())
)
## keep only the forst six species
trimmed_dec <- ASCA_trim_vars(dec_test$decomposition, 1:6)