Skip to main content
Skip table of contents

getSamplingMethod

Get which sampling method is used for the simulation. The possibilities are:

  • keepOrder (default): individual values are taken in the same order as they appear in a table.

  • withReplacement: individual values are sampled from a table with replacement.

  • withoutReplacement: individual values are sampled from a table without replacement. This option is available only if tables contain at least the same number of individual values as a group size.

All of the above sampling methods are general and apply to all tables in a simulation scenario.

Usage

R
getSamplingMethod()

Details

All options of the Simulx scenario are the same as in Simulx GUI. Check the online doc of Simulx to get more guidance on how to use them.

Examples

R
  initializeLixoftConnectors("simulx")
  project_name <- file.path(getDemoPath(), "5.simulation", "samplingOptions.smlx")
  loadProject(project_name)
  getSamplingMethod()
#> [1] "withoutReplacement"
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.