Title: | The Minimum Sample Size |
---|---|
Description: | Using this package, one can determine the minimum sample size required so that the mean square error of the sample mean and the population mean of a distribution becomes less than some pre-determined epsilon, i.e. it helps the user to determine the minimum sample size required to attain the pre-fixed precision level by minimizing the difference between the sample mean and population mean. |
Authors: | Anik Paul [aut, cre] |
Maintainer: | Anik Paul <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0 |
Built: | 2025-02-16 05:31:22 UTC |
Source: | https://github.com/cran/minsample2 |
This package helps determining the minimum sample size required to attain some pre-fixed precision level.
l_exp(n, eps, theta = 1)
l_exp(n, eps, theta = 1)
n |
a vector of proposed sample size |
eps |
a vector of the precision level |
theta |
the parameter for the underlying distribution, here Exponential Distribution |
in any distribution for a large sample the mean-squared error gradually tends to zero, the minimum number depends on the precision level i.e. the pre-fixed eplison.
report: the data frame containing the minimum value of the sample size corresponding to the pre-fixed epsilon
Methods for this process is described in A.M.Gun,M.K.Gupta,B.Dasgupta(2019,ISBN:81-87567-81-3).
l_exp(1:5,0.5,1)
l_exp(1:5,0.5,1)
This package helps determining the minimum sample size required to attain some pre-fixed precision level
l_norm(n, eps, mu = 0, sigma = 1)
l_norm(n, eps, mu = 0, sigma = 1)
n |
a vector of proposed sample size |
eps |
a vector of the precision level |
mu |
the location parameter for the underlying distribution, here normal distribution(mean) |
sigma |
the scale parameter for the underlying distribution, here normal distribution(standard deviation) |
in any distribution for a large sample the mean-squared error gradually tends to zero, the minimum number depends on the precision level i.e. the pre-fixed eplison
report: the data frame containing the minimum value of the sample size corresponding to the pre-fixed epsilon
Methods for this process is described in A.M.Gun,M.K.Gupta,B.Dasgupta(2019,ISBN:81-87567-81-3).
l_norm(1:5,0.5,3,1)
l_norm(1:5,0.5,3,1)