Description Usage Arguments Value Author(s) References See Also Examples
The function Smean
estimates the population mean out of simple samples either with or without consideration of finite population correction.
1 |
y |
vector of sample data |
N |
positive integer specifying population size. Default is |
level |
coverage probability for confidence intervals. Default is |
The function Smean
returns a value, which is a list consisting of the components
call |
is a list of call components: |
mean |
mean estimate |
se |
standard error of the mean estimate |
ci |
vector of confidence interval boundaries |
Juliane Manitz
Kauermann, Goeran/Kuechenhoff, Helmut (2010): Stichproben. Methoden und praktische Umsetzung mit R. Springer.
1 2 3 4 5 6 7 8 9 10 |
Loading required package: pps
Loading required package: sampling
Loading required package: survey
Loading required package: grid
Loading required package: Matrix
Loading required package: survival
Attaching package: ‘survival’
The following objects are masked from ‘package:sampling’:
cluster, strata
Attaching package: ‘survey’
The following object is masked from ‘package:graphics’:
dotchart
[1] 9 10 11 18 22
[1] 9 11 22
Smean object: Sample mean estimate
With finite population correction: N=5
Mean estimate: 14
Standard error: 2.556
95% confidence interval: [8.9903,19.0097]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.