| plot.nparld_fit | R Documentation |
Displays graphical summaries of estimated relative effects from an
nparLD() fit. By default, the method plots the cell-level relative
effects stored in x$effects. If term is supplied, it plots
factor-specific relative effects and confidence intervals for selected main
effects or interactions. Term-specific plots require that the model was fitted
with Factor.Information = TRUE.
## S3 method for class 'nparld_fit'
plot(
x,
term = NULL,
xlab = NULL,
ylab = "Relative effect",
main = NULL,
legend.title = NULL,
ref.line = 0.5,
ref.lty = "dashed",
ref.col = "grey40",
...
)
x |
An object of class |
term |
Optional character vector specifying one or more model terms for
which factor-specific relative effects and confidence intervals should be
plotted. The requested terms require |
xlab |
Optional x-axis label. |
ylab |
Optional y-axis label. The default is |
main |
Optional plot title. |
legend.title |
Optional legend title. |
ref.line |
Optional horizontal reference line. The default is |
ref.lty |
Line type for the reference line. |
ref.col |
Colour of the reference line. |
... |
Further arguments. |
The default plot displays the estimated cell-level relative effects. If
term is supplied, the plot displays factor-specific relative effects
and confidence intervals for the selected main effects or interactions. This
requires that the model was fitted with Factor.Information = TRUE.
The horizontal reference line at 0.5 indicates no tendency relative to the
reference distribution. Values above 0.5 indicate a tendency toward larger
responses, whereas values below 0.5 indicate a tendency toward smaller
responses.
data(shoulder)
fit <- nparLD(
resp ~ group1 * group2 * time,
data = shoulder,
subject = "subject",
hypothesis = "H0p",
Factor.Information = TRUE
)
## Cell-level relative effects
plot(fit)
## Factor-specific relative effects and confidence intervals
plot(fit, term = "time")
plot(fit, term = "group1:time")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.