DataObject.SetNominal

Prototypes

void SetNominal( Matrix mVarNames <, boolean bNominal> )

void SetNominal( String sVarName <, boolean bNominal> )

void SetNominal( String[] asVarNames <, boolean bNominal> )

Parameters

Matrix mVarNames
A vector containing the names of the variables whose measurement level you want to set.

String sVarName
The name of the variable whose measurement level you want to set.

String[] asVarNames
An array containing the names of the variables whose measurement level you want to set.

boolean bNominal
If bNominal is true, the measurement level of the specified variables is set to Nominal. If bNominal is false, the measurement level of the specified variables is set to Interval. Calling this method without specifying the bNominal parameter is equivalent to calling it with bNominal equal to true.

Remarks

This method sets the measurement level of the specified variables. The measurement level of a character variable cannot be set to Interval.

Example
gender  = { F F F F F F F F F F M M M M M M };
baskets = { 4 6 8 6 4 3 6 5 3 5 5 6 9 2 3 5 };
declare DataObject dobj;
dobj = DataObject.Create( "Baskets" );
dobj.AddVar( "Gender", gender );
dobj.AddVar( "Baskets", baskets );
dobj.SetNominal( "Baskets" );
BarChart.Create( dobj, "Baskets" );