Description Usage Arguments Examples
This function allows you to make estimation or sample size determinations for the ratio wtih surveys using simple random sampling.
1 2 3 |
x |
The independent data vector to be used for estimation. |
y |
The dependent data vector to be used for estimation. |
B |
The desired bound on the estimation. Required for sample size determination. |
N |
The population size. Required for sample size determination. |
mux |
The population mean of x. |
taux |
The population total of x. This must be supplied if N is NULL. |
sig2 |
The population variance. |
sample.size.det |
Logical statement indicating if the action should be sample size determination. If false, estimation occurs. |
estimate |
Indicate the desired statistic to be estimated. Options include: ratio, mean, and total. This is only needed for sample size determination as all three are reported in estimation. |
alpha |
Significance level. |
1 2 3 | x=rnorm(50,5,1)
survsamp.ratio(x=x,y=x+rnorm(50),
estimate="ratio",mux=5,N=100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.