power.plot1: Plot the null or alternative sampling distribution for a...

Description Usage Arguments Value Examples

View source: R/power.plot1.r

Description

Plot the null or alternative sampling distribution for a power analysis

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
power.plot1(
  mu = 60,
  sd = 1,
  xlimits = c(55, 65),
  plot.type = "Ho",
  alpha = 0.05,
  xcors = c(56, 59, 61, 65),
  alt.hyp = "mu1<mu0",
  shade.colors = c("darkgoldenrod1", "cornsilk", "darkgoldenrod1"),
  superimpose = FALSE,
  show.values = FALSE,
  show.means = FALSE
)

Arguments

mu

A value for the mean of the distribution

sd

A positive value for the standard deviation of the distribution

xlimits

Values for the range of the x-axis

plot.type

One of: "Ho" or "Ha" for the type of distribution to plot

alpha

A value between .005 and .1 for the Type I error rate

xcors

The 4 quantiles that delimit the areas of interest

alt.hyp

One of: "mu1<>mu0", "mu1<mu0", or "mu1>mu0"

shade.colors

colors for the regions of interest

superimpose

Whether to create new plot for Ha or superimpose over Ho

show.values

Select whether Type I, II, and Power are displayed in plot.

show.means

Whether to plot means for Ho and Ha

Value

pow Probability of correct rejection (For plot.type="Ha")

Examples

1

CLPS0900/CLPS0900R documentation built on March 16, 2020, 4:55 a.m.