Description Usage Arguments Examples
The functions xlevels
and dlevels
are primarily intended to create arguments for expand.grid
to create 'prediction' or 'effect data frames',
to generate wald tests and estimates of specific effects in models with interactions,
1 2 3 4 5 6 7 | xlevels(f, type = c("raw", "(mean)"), all = FALSE, sep = "")
dlevels(f, type = "pairwise", all = FALSE, sep = "")
Pmat(f, type = c("factor", "raw", "mean", "(mean)", "<mean>", "II", "cen", "cent", "center", "centre", "<centre>", "<center>", "(center)", "(centre)", "III", "pairwise", "<others.m>", "<others.c>", "diff", "diffmean", "diffc", "diffcen", "diffcentre", "diffcentre"), all = FALSE, sep = "")
Pmat_diffmat(w)
|
f |
a factor or otherwise a vector interpreted as the levels of a factor |
type |
one or more types of contrasts ('derivative') or means (convex combinations) of factor levels |
all |
for some values of |
sep |
can add spaces in constructed factor levels |
w |
weights used for each factor level in creating contrasts differentiating a factor level from others. Weights corresponding to frequencies in the data frame result in effects corresponding to type II effects while equal weights correspond to type III effects for interacting specific effects |
1 2 3 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.