internal.prop.test {simitation}R Documentation

Internal function for One-sample Proportions Test

Description

Computes the test for proportion for the given binary data.

Usage

internal.prop.test(
  x,
  p = NULL,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95,
  correct = TRUE
)

Arguments

x

A binary variable.

p

Null hypothesis value for proportion. Default is NULL.

alternative

A character string specifying the alternative hypothesis. One of "two.sided", "less", or "greater". Default is "two.sided".

conf.level

A numeric value between 0 and 1 indicating the confidence level for the interval estimate of the proportion. Default is 0.95.

correct

A logical indicating if Yates' continuity correction should be applied for the test. Default is TRUE.

Value

A data frame with test results.


[Package simitation version 0.0.7 Index]