This function is called by all ASCA related methods in this package. It is documented so that one can have access to a richer set of parameters from the various methods or call this function directly. The latter should be done with care as there are many possibilities and not all have been used in publications or tested thoroughly.
asca_fit(
formula,
data,
subset,
weights,
na.action,
family,
permute = FALSE,
perm.type = c("approximate", "exact"),
unrestricted = FALSE,
add_error = FALSE,
aug_error = "denominator",
use_ED = FALSE,
pca.in = FALSE,
coding = c("sum", "weighted", "reference", "treatment"),
SStype = "II",
REML = NULL
)
An asca
object containing loadings, scores, explained variances, etc. The object has
associated plotting (asca_plots
) and result (asca_results
) functions.
Model formula accepting a single response (block) and predictors. See Details for more information.
The data set to analyse.
Expression for subsetting the data before modelling.
Optional object weights.
How to handle NAs (no action implemented).
Error distributions and link function for Generalized Linear Models.
Perform approximate permutation testing, default = FALSE (numeric or TRUE = 1000 permutations).
Type of permutation: "approximate" (default) or "exact".
Use unrestricted ANOVA decomposition (default = FALSE).
Add error to LS means, e.g., for APCA.
Augment score matrices in backprojection. Default = "denominator" (of F test), "residual" (force error term), nueric value (alpha-value in LiMM-PCA).
Use "effective dimensions" for score rescaling in LiMM-PCA.
Compress response before ASCA (number of components).
Effect coding: "sum" (default = sum-coding), "weighted", "reference", "treatment".
Type of sum-of-squares: "I" = sequential, "II" (default) = last term, obeying marginality, "III" = last term, not obeying marginality.
Parameter to mixlm: NULL (default) = sum-of-squares, TRUE = REML, FALSE = ML.