Type
Set Modeling Type
Example 1
Summary: Sets categorical variables for a data table, specifying the modeling type as Ordinal or Nominal for 'sibling ages', 'sports', 'countries visited', and 'family cars'.
Code:
// Set Categorical
// Open data table
dt = Open("data_table.jmp");
// Set Categorical
:sibling ages <<
Set Modeling Type( "Ordinal" );
:sports << Set Modeling Type( "Nominal" );
:countries visited <<
Set Modeling Type( "Nominal" );
:family cars <<
Set Modeling Type( "Nominal" );
Code Explanation:
- Open data table.
- Set sibling ages as Ordinal.
- Set sports as Nominal.
- Set countries visited as Nominal.
- Set family cars as Nominal.
Example 2
Summary: Sets multiple response variables for sibling ages, sports, countries visited, and family cars in a data table, enabling further analysis and modeling.
Code:
// Set Multiple Response
// Open data table
dt = Open("data_table.jmp");
// Set Multiple Response
:sibling ages <<
Set Modeling Type( "Multiple Response" );
:sports <<
Set Modeling Type( "Multiple Response" );
:countries visited <<
Set Modeling Type( "Multiple Response" );
:family cars <<
Set Modeling Type( "Multiple Response" );
Code Explanation:
- Open data table.
- Set sibling ages as multiple response.
- Set sports as multiple response.
- Set countries visited as multiple response.
- Set family cars as multiple response.
Example 3
Summary: Process of setting the modeling type for a date column in a JMP data table, enabling further analysis and exploration.
Code:
dt = Open("data_table.jmp");
dt:Date << Set Modeling Type( "Ordinal" );
Code Explanation:
- Open data table;
- Set date column modeling type.
Summary: Sets sex variable modeling type to 'None' in a JMP data table.
Code:
Open("data_table.jmp");
:sex << set modeling type( "None" );
Code Explanation:
- Open data table;
- Set sex variable modeling type.
Data Type
Summary: Opens a data table and changes the 'Price' column's data type to character.
Code:
dt = Open("data_table.jmp");
dt:Price << Data Type( "Character" );
Code Explanation:
- Open data table.
- Change Price data type.