UserGuide BioStat Prime Help

ID Variable

Creates a numeric row identification (ID) variable in either the current dataset or in a separate copy of the current dataset. The ID variable created will consist of the numeric values 1, 2, 3, etc., in that order, from top to bottom in the dataset.

Can optionally specify variables to sort by or group by before the identification variable is created. The variables to sort by and group by can be the same or different variables.

ID Variable

The arguments used is executing the dialog are given as follows.

Name of ID variable to create

Specify the desired name of the ID variable in the output dataset.

Variables to sort by first (optional)

Specify variables to sort by before groups are defined or the ID variable is created

Variables to Group By (optional)

Specify variables whose levels will define the separate assignment of ID values. For example, grouping by gender will create values of 1, 2, 3, etc. separately for males and females, in order of appearance in the data set.

Output Dataset

Specify whether to create a new dataset or overwrite the current dataset

ID Variable
Last modified: 31 July 2025