Description Usage Arguments Value
This function do Simple Random Sample and Stratified inferences from a sample data, given an alpha level. It can calculate estimates for means, totals, proportions and ratios too. It have option to print a Word *.docx table with the estimate parameters and two plotting graph types.
1 2 3 4 |
sample.data |
A data.frame representing a sample with the collected data. |
num.y |
The index number of the columns (vector) where the data is continuous. |
total.x |
If you are using ratio estimators and want to estimate totals, you gonna need a total of \bar{X}. Use vectors of the same length as your estimated variables for estimate totals. If you don't provide totals, they will be estimated from data. |
cat.y |
The index number of the columns where the data is categorical. |
strat |
The index number of the columns to be used as stratified design. |
post.strat |
The index number of the columns to used as a post stratified design. |
alpha |
1 - Confidence level. |
N |
Population size. |
type |
A vector of characters. Allowed means, totals or ratios. The function use |
fpc |
The index number of the column to be used as the factor of population correction. |
labels |
An optional string vector of labels to be putted into printed table. |
print.report |
|
denom.y |
The index number of the columns (vector) that will be used as denominator for ratio estimators. Use NULL if you don't want to use ratio estimators or combine regular estimators with ratio ones. |
A data.frame containing the following:
The label of the parameter.
The effective sample size.
Standard error.
Point estimate.
Confidence interval.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.