get.ci: Simulation of Confidence Intervals

Description Usage Arguments Value Author(s) References Examples

Description

Simulate the effect of sample size and the sampling design.

Usage

1
get.ci(sample = NULL, n = NULL, mu = 0, sigma = 1, cl = 0.95, type = "mean")

Arguments

sample

is an integer value to simulate the sampling design.

n

the size of the sample

mu

is the proportion mean (0 to 1) of the population distribution.

sigma

is the size of variance

cl

is the value of the confidence level required, usually 0.95 to 0.99.

type

is a character string giving the type for the simulation c(“mean”, “var”, “pi”)

Value

A plot with the simulated values for CI.

Author(s)

Daniel Marcelino

References

http://danielmarcelino.com/SciencePo

Examples

1
2
3
get.ci(sample = 1000, n = 1, mu = .29)

get.ci(1000, 1, .29, 2, .90)

SciencePo documentation built on May 2, 2019, 5:53 p.m.