Estimate proportion using classic estimator
estimate_classic(x, n, z = 1.96)
x | Total number of successes |
---|---|
n | Total number of tests |
z | z-value. Default is 1.96 for 95% confidence interval |
A list containing the following components:
estimate
A vector with the sample proportions
conf.int
A confidence interval for the true proportion
estimate_classic(x = 50, n = 200)#> [[1]] #> [1] 0.25 #> #> [[2]] #> [1] 0.2457565 0.2542435 #>