ciprob.sim: Simulate the Confidence Interval for a Proportion

ciprob.simR Documentation

Simulate the Confidence Interval for a Proportion

Description

Simulate the Confidence Interval for a Population Proportion

Usage

ciprob.sim(n, p = 0.5, alp = 0.05, N = 100, seed = 9857, dig = 4,
  plot = TRUE)

Arguments

n

Sample size

p

Population proportion value, Default: 0.5

alp

Level of significance, Default: 0.05

seed

Seed value for generating random numbers, Default: 9857

dig

Number of digits below the decimal point, Default: 4

plot

Plot confidence intervals? Default: TRUE

n

Sample size, Default: 100

Value

None.

Examples

ciprob.sim(n=16, p=0.6, alp=0.05, N=100)
ciprob.sim(n=16, p=0.6, alp=0.05, N=10000, plot=FALSE)

adoocavo/Rstat_M1 documentation built on March 19, 2022, 3:34 a.m.