schweder | R Documentation |
Produces the plot suggested by Schweder and Spjotvoll to display a collection of \mjseqnp-values and also optionally draws the lowest slope line suggested by Benjamini and Hochberg\loadmathjax
schweder(p, xlab = "Rank of p", ylab = "p", drawline = NULL,
bh.lwd = 1, bh.lty = "solid", bh.col = "black",
ls.control = list(frac = NULL),
ls.lwd = 1, ls.lty = "dotted", ls.col = "black",
ab.control = list(a = NULL, b = NULL),
ab.lwd = 1, ab.lty = "dashed", ab.col = "black", ...)
p |
A vector of \mjseqnp-values |
xlab |
Label for plot \mjseqnx-axis |
ylab |
Label for plot \mjseqny-axis |
drawline |
Which line, if any, to draw. See Details |
bh.lwd |
Width of the lowest slope line |
bh.lty |
Line type of the lowest slope line |
bh.col |
Colour of the lowest slope line |
ls.control |
A list containing a named element |
ls.lwd |
Width of the least squares line |
ls.lty |
Line type of the least squares line |
ls.col |
Colour of the least squares line |
ab.control |
A list containing two elements |
ab.lwd |
Width of the specified line |
ab.lty |
Line type of the specified line |
ab.col |
Colour of the specified line |
... |
Further parameters to be passed through to plot |
After removing invalid \mjseqnp-values plots them.
Any graphics parameters passed in ...
affect this part
of the plot only.
Note that the axes are chosen according to the scheme of Banjamini and
Hochberg, Schweder and Spjotvoll used a different system.
By setting drawline
appropriately up to three
lines may be drawn.
If drawline
includes the string "bh"
the lowest slope line of Benjaimin and Hochberg is drawn.
No further parameters are needed here but the characteristics of the
line may be set: width, line type, and colour.
If drawline
includes the string "ls"
a least squares line is drawn passing through the point
\mjseqnk+1, 1.
The parameter frac
specified what fraction of the
values be used for this and may need experimentation
to obtain a suitable line.
The characteristics of the
line may be set: width, line type, and colour.
If drawline
includes the string "ab"
a user specified line is drawn.
The parameters a
and b
specify the intercept
and slope.
The characteristics of the
line may be set: width, line type, and colour.
A list containing
p |
The values of \mjseqnp plotted |
bh.params |
A list containing at least items |
ls.params |
A list containing at least items |
ab.params |
A list containing at least items |
Michael Dewey
becker94metap
\insertRefbenjamini00metap
\insertRefschweder82metap
data(dat.metap)
teachexpect <- dat.metap$teachexpect
schweder(teachexpect)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.