| summary1way | R Documentation |
Displays summary information for a one-way anova analysis. The lm object must come from a numerical response variable and a single factor. The output includes: (i) anova table; (ii) numeric summary; (iii) table of effects; (iv) plot of data with intervals.
summary1way(
fit,
digit = 5,
conf.level = 0.95,
inttype = "tukey",
pooled = TRUE,
print.out = TRUE,
draw.plot = TRUE,
...
)
fit |
an lm object, i.e. the output from |
digit |
decimal numbers after the point. |
conf.level |
confidence level of the intervals. |
inttype |
three options for intervals appeared on plot: 'hsd','lsd' or 'ci'. |
pooled |
two options: pooled or unpooled standard deviation used for plotted intervals. |
print.out |
if |
draw.plot |
if |
... |
more options. |
Invisibly returns a list containing the one-way ANOVA summary components used in the printed teaching output. The list contains:
Df |
degrees of freedom for between groups, within groups, and total. |
Sum of Sq |
sum of squares for between groups, within groups, and total. |
Mean Sq |
mean squares for between groups and within groups. |
F value |
the one-way ANOVA F statistic. |
Pr(F) |
the P-value associated with the F test. |
Main Effect |
the grand mean of the response. |
Group Effects |
group deviations from the grand mean. |
The printed ANOVA table, numeric summary, effects table, and optional plot are the primary teaching interface. The returned list is invisible so classroom use can focus on the printed output while programmatic callers can still inspect the computed values.
summary2way, anova, aov, dummy.coef, onewayPlot
## Computer questionnaire data:
data(computer.df)
computer.df = within(computer.df, {
selfassess = factor(selfassess)
})
computer.fit = lm(score ~ selfassess, data = computer.df)
result = summary1way(computer.fit)
result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.