proportion.test.onesample.exact.simple: One Sample Proportion Test (Exact)

View source: R/proportion.test.onesample.exact.simple.R

proportion.test.onesample.exactR Documentation

One Sample Proportion Test (Exact)

Description

Calculates a one-sample proportion test to determine if a sample proportion is statistically different from an assumed population proportion.

Usage

proportion.test.onesample.exact(
  x,
  success.value = 1,
  null.hypothesis.proportion = 0.5,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95
)

proportion.test.onesample.exact.simple(
  sample.proportion = NA,
  sample.size = NA,
  np = sample.size * sample.proportion,
  null.hypothesis.proportion = 0.5,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95
)

Arguments

x

Vector - Sample Values

success.value

Scalar - Value compared with x using == operator to determine if a trial is a "success"

null.hypothesis.proportion

Scalar/numeric - assumed population proportion.

alternative

The alternative hypothesis to use for the test computation.

conf.level

The confidence level for this test, between 0 and 1.

sample.proportion

Scalar/numeric - sample proportion between 0 and 1. Required if np not specified.

sample.size

Scalar/numeric - sample size. Required.

np

Scalar/numeric - sample size multipled by sample proportion. Required if sample.proportion not specified.

Value

Hypothesis test result showing results of test.


burrm/lolcat documentation built on Sept. 15, 2023, 11:35 a.m.