Learn R Programming

neutroSurvey (version 0.1.0)

get_user_inputs: 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()

Arguments

Value

A list containing:

  • theta_L - Lower theta value

  • theta_U - Upper theta value

Author

Neha Purwar, Kaustav Aditya, Pankaj Das and Bharti

Examples

Run this code

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
}

Run the code above in your browser using DataLab