iscam_binompower: iscam_binompower Function

Description Usage Arguments Examples

Description

This function determines the rejection region corresponding to the level of significance and the first probability. A second, optional probability can be specified to determine the power of the test.

Usage

1
2
iscam_binompower(LOS, n, prob1, alternative, prob2 = NULL,
  explain = FALSE)

Arguments

LOS

level of significance

n

number of trials (zero or more)

prob1

probability of success on each trial

alternative

allows you to specify whether you want to find the probability "less" or "greater" or a symmetric "two.sided" probability

prob2

NULL or a second probability

explain

logical, default = FALSE. Set to TRUE to see type I and II error and power on the graph

Examples

1
2
3
4
iscam_binompower(.05, 30, 0.5, alternative = "greater")
iscam_binompower(.10, 55, 0.10, alternative = "less")
iscam_binompower(.05, 20, 0.5, "two.sided", 0.6)
iscam_binompower(.05, 20, 0.25, alternative = "greater", 0.333, explain = TRUE)

apjacobson/iscam documentation built on May 6, 2019, 12:08 p.m.