get_user_inputs: Get User Inputs for Population and Sample Sizes

View source: R/mse_calculations.R

get_user_inputsR 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
}

neutroSurvey documentation built on June 23, 2025, 5:08 p.m.