View source: R/samplingStrata_start.R
samplingStrataSRV | R Documentation |
Shiny server module for simulation start
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)
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 |
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. |
Data frame containing the final sample
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.