NormalAndT.power

0th

Percentile

Construct a power graph based on the NormalAndT plot.

Construct a power graph based on the NormalAndT plot.

Keywords
hplot
Usage
NormalAndT.power(nt,
                   which=c("power","beta"),
                   digits=4,
                   digits.top.axis=digits, digits.left=digits,
                   col.power=attr(nt, "color")["col.power"],
                   cex.top.axis=1, cex.left.axis=1,
                   lwd.reference=4, lwd.line=2,
                   main=which)
NormalAndT.and.power(nt, which="power",
                       pnt=NormalAndT.power(
                         nt,
                         digits.top.axis=digits.top.axis,
                         digits.left=digits.left,
                         which=which,
                         cex.top.axis=cex.top.axis, cex.left.axis=cex.left.axis,
                         lwd.reference=4, lwd.line=2),
                       digits=4, digits.top.axis=digits, digits.left=digits,
                       cex.top.axis=1, cex.left.axis=1,
                       display.ylab=TRUE)
Arguments
nt
A "NormalAndT" object from NormalAndTplot.
which
Which graph is to be displayed? "power" for the power curve, or "beta" for the operating characteristic curve.
digits.top.axis, digits.left, digits, cex.top.axis, cex.left.axis
digits.top.axis is the number of significant digits for the top axis. digits.left is the number of significant digits for the observed power or beta on the left axis. digits is a convenience argument to
col.power
Color used for the crosshairs on the power or beta panel. The default value is the color used for the power region of the NormalAndT panel.
lwd.reference, lwd.line
lwd values for the power or beta panel. lwd.line is used for the power curve or beta curve. lwd.reference is used for the crosshairs.
pnt
A "trellis" object produced by NormalAndT.power.
display.ylab
logical. Should the ylab for the panels be displayed?
main
Main title for graph.
Details

NormalAndT.power constructs a power graph from the "NormalAndT" object. NormalAndT.and.power calls NormalAndT.power to construct a power graph from the "NormalAndT" object, and then catenates it with the c.trellis function to the original "NormalAndT" object.

Value

  • "trellis" object.

Aliases
  • NormalAndT.power
  • NormalAndT.and.power
Examples
nt <- NormalAndTplot(mean0=2, mean1=4, sd=3, n=20, xlim=c(-.1, 6.1))
NormalAndT.and.power(nt)

tt <- NormalAndTplot(mean0=2, mean1=4, sd=3, n=20, xlim=c(-.1, 6.1), df=4, distribution.name="t")
NormalAndT.and.power(tt)

ntc <- NormalAndTplot(xbar=2, sd=3, n=20, xlim=c(-.1, 4.1), type="confidence",
                    alpha.left=.025, alpha.right=.025)
ntc
try(NormalAndT.and.power(ntc))
Documentation reproduced from package HH, version 3.1-8, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.