Skip to content

Instantly share code, notes, and snippets.

View kgreed's full-sized avatar

Kirsten Greed kgreed

View GitHub Profile
@mrdwab
mrdwab / SampleSize.R
Created May 21, 2011 17:35
R sample size and confidence interval calculation
###############################################################################
# Sample Size and Confidence Interval Calculation #
# v 1.3 by "Ananda Mahto"/mrdwab/ananda@mahto.info #
# 2011 May 17 #
# --------------------------------------------------------------------------- #
# #
# Example usage: #
# * sample.size.table(c.lev = c(90, 95, 98, 99), population = 378) #
# * sample.size(c.lev = 98, population = 200) #
# * confidence.interval(c.lev = 95, p.ss = 80, population = 100) #