This function extracts the desired portions of an "mcposthoc" object.
# S3 method for mcposthoc
summary(object, ph.list = NULL,
term = NULL, print = TRUE, ...)
An "mcposthoc" object as returned by function mcposthoc.fnc
.
The name of the posthoc analysis for which results are desired. For example, if, in function mcposthoc.fnc
, argument var
was set to list(ph1 = c("PronomOfTheme", "AnimacyOfRec", "DefinOfRec"), ph2 = c("SemanticClass"))
, ph.list
should be one of "ph1" or "ph2". Defaults to NULL
. If ph.list = NULL
and more than one posthoc analysis was performed, the user will be prompted to select one of the analyses.
The model term for which posthoc results are desired. Defaults to NULL
, in which case the user will be prompted to select a term.
Whether to print to screen the posthoc summary. Defaults to TRUE
.
Not used.
The posthoc list in the "mcposthoc" object from which the summary originates.
The term from the posthoc list for which a summary is desired.
The posthoc summary.
The function creates a summary data frame from statistics obtained from an "mcposthoc" object for the specified term. It goes through each element of the ph.list
-- each list element is the summary of the model re-leveled on one factor level (or combination of factor levels) -- extracts the row corresponding to the term
, and binds it to the other extracted rows.
# NOT RUN {
### See examples from mcposthoc.fnc() help page.
# }
Run the code above in your browser using DataLab