File Exchange > Data Analysis >    Random Sample

Author:
OriginLab Technical Support
Date Added:
7/25/2024
Last Update:
11/14/2024
Downloads (90 Days):
7
Total Ratings:
0
File Size:
192 KB
Average Rating:
File Name:
Random_Sample.opx
File Version:
1.00
Minimum Versions:
License:
Type:
App
Summary:

Select samples from input data randomly with or without replacement.

Screen Shot and Video:
Description:

PURPOSE
This app can be used to select samples from input data randomly with or without replacement, and it supports unequal probabilities.

INSTALLATION
Download the file Random_Sample.opx, and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps Gallery window.
NOTE: This tool requires OriginPro.

OPERATION

  • Make a worksheet for input data active. Click on the Random Sample icon in the Apps Gallery window. A dialog will open.
  • In the opened dialog, select columns for Input DataEqual Probabilities check box can be used to specify probabilities for samples. If it is unchecked, Weight column should be chosen for probabilities. With Replacement check box determines to select samples with or without replacement.
  • Number of Samples specifies number of samples to generate. Repeatable determines whether the result can be reproduced. If it is checked, a positive integer should be defined as Seed.
  • In the Output branch, if Sampling Rows is specified, it will save row numbers of generated samples.
  • Click OK button. Columns for generated samples and row numbers for samples will be created.

SAMPLE OPJU FILE
This app provides a sample OPJU file. Right click on the Random Sample icon in the Apps Gallery window, and choose Show Samples Folder from the short-cut menu. A folder will open. Drag-and-drop the project file RandomSamplingEx.opju from the folder onto Origin. The Notes window in the project shows detailed steps for two samples.
Note: If you wish to save the OPJU after changing, it is recommended that you save to a different folder location (e.g. User Files Folder).

REFERENCE

  1. Random with replacement function
  2. Random without replacement function
  3. Random with replacement for unequal probabilities function
  4. Random without replacement for unequal probabilities function

Related Apps

  1. Bootstrap Sampling app
  2. Randomness Tests app
  3. Data Factory app

Updates:

Reviews and Comments:

Be the first to review this File Exchange submission.