samplingStrataSRV: Shiny server module for simulation start

View source: R/samplingStrata_start.R

samplingStrataSRVR Documentation

Shiny server module for simulation start

Description

Shiny server module for simulation start

Usage

samplingStrataSRV(input, output, session, dataset, domain_var, target_var,
  strat_var_cat, strat_var_cont, start_strat, frame_CV_in, nBins, seed,
  minStrat, nsample = 1000)

Arguments

input

standard shiny input

output

standard shiny output

session

standard shiny session object

dataset

frame dataset used for the stratification

domain_var

the selected domain variables

target_var

the selected target variables

strat_var_cat

the selected categorical stratification variables

strat_var_cont

the selected continous stratification variables (require bin to be set)

start_strat

simulation start button

frame_CV_in

dataframe of CVs by domain

nBins

number of bins for the k-means clustering implemented by SamplingStrata::var.bin() for continous stratification variables

seed

the random seed required for the optimization to be reproducable

minStrat

this is the minimum number of units required per stratum

nsample

number of simulation runs, default is 1000.

Value

Data frame containing the final sample


michael-cw/SurveySolutionsCOVID19tools documentation built on Oct. 4, 2022, 10:34 a.m.