proptest: Function of 'Proportion Hypothesis Test'

Description Usage Arguments Value Examples

View source: R/function_proptest.R

Description

Function of 'Proportion Hypothesis Test'

Usage

1
proptest(x, n, p, alternative)

Arguments

x

The number of objects of interest

n

The total number

p

The comparision object

alternative

Twoside or less test

Value

The output are the value of the statistic(u) and the p value

Examples

1
2
3
4
5
proptest(45, 100, 0.5, alternative = 'twoside')
proptest(450, 1000, 0.5, alternative = 'twoside')

#two sample test
prop.test(c(45, 56), c(45 + 35, 56 + 47))

zhaoxue-xmu/RDA documentation built on May 4, 2019, 10:17 p.m.