get_user_inputs {neutroSurvey} | R Documentation |
Get User Inputs for Population and Sample Sizes
Description
Interactively prompts user for population and sample sizes and calculates theta values (1/n - 1/N) used in MSE calculations.
Usage
get_user_inputs()
Value
A list containing:
theta_L - Lower theta value
theta_U - Upper theta value
Author(s)
Neha Purwar, Kaustav Aditya, Pankaj Das and Bharti
Examples
if(interactive()){
# Interactive example (run in console)
inputs <- get_user_inputs()
# The function will prompt:
# Enter value for population size_L: 1000
# Enter value for population size_U: 2000
# Enter value for sample_size_L: 100
# Enter value for sample_size_U: 200
}
[Package neutroSurvey version 0.1.0 Index]