Set Property
Example 1
Summary: Sets up a data table by opening it and setting missing value codes for height, preparing the data for analysis.
Code:
Open("data_table.jmp");
:height << Set Property( "Missing Value Codes", 999 );
:height << Set Values( [999] );
Code Explanation:
- Open data table;
- Set missing value code for height.
- Assign missing value to height.
Example 2
Summary: Vizualizes mean profit by product line and quarter using Graph Builder in JMP.
Code:
Open("data_table.jmp");
:Squat << set property( "missing value codes", {330} );
Code Explanation:
- Open data_table data
- Set missing value code for Squat column.
Example 3
Summary: Sets up a data table with forced values for Species and Sex, facilitating further analysis.
Code:
Open("data_table.jmp");
:Species << Set Property(
"Forced Values",
{"Adelie Penguin (Pygoscelis adeliae)", "Chinstrap penguin (Pygoscelis antarctica)", "Emperor penguin (Aptenodytes forsteri)",
"Gentoo penguin (Pygoscelis papua)"}
);
:Sex << Set Property( "Forced Values", {"MALE", "FEMALE"} );
Code Explanation:
- Open data table;
- Set Species forced values.
- Set Sex forced values.
Example 4
Summary: Sets forced values for the 'age' variable in a data table, utilizing the Set Property function.
Code:
dt2 = Open("data_table.jmp");
dt2:age << Set Property( "Forced Values", {12, 13, 14, 15, 16, 17} );
Code Explanation:
- Open data table;
- Set age forced values.
Example 5
Summary: Vizualizes mean profit by product line and quarter using Graph Builder in JMP.
Code:
Open("data_table.jmp");
:Product Line << Set Property( "Row Order Levels" );
Code Explanation:
- Open data table.
- Set row order levels for product line.
Example 6
Summary: Sets up a data table by opening 'data_table.jmp', setting the first sex value to empty, and marking the sex column as informative missing.
Code:
Open("data_table.jmp");
:sex[1] = "";
:sex << set property( "Informative Missing", 1 );
Code Explanation:
- Open data table.
- Set first sex value to empty.
- Mark sex column as informative missing.
Example 7
Summary: Vizualizes mean profit by product line and quarter using Graph Builder in JMP, setting missing value codes for Position 2.
Code:
Open("data_table.jmp");
:Position2 << set property( "missing value codes", {"o"} );
Code Explanation:
- Open data_table data
- Set missing value code.
Example 8
Summary: Prepares data by setting value ordering for age and sex variables in a JMP data table.
Code:
dt = Open("data_table.jmp");
dt:age << Set Property( "Value Ordering", {15, 14, 12, 13, 16, 17} );
dt:sex << Set Property( "Value Ordering", {"M", "F"} );
Code Explanation:
- Open data table.
- Set age value ordering.
- Set sex value ordering.
Example 9
Summary: Vizualizes mean profit by product line and quarter using Graph Builder in JMP.
Code:
Open("data_table.jmp");
:height << set property( "Value Labels", {65 <= "top quartile" <= 70} );
Code Explanation:
- Open data table;
- Set value labels for height.
Example 10
Summary: Vizualizes mean profit by product line and quarter using Graph Builder in JMP, with customized age value colors.
Code:
Open("data_table.jmp");
:age << set property( "Value Colors", {12 = -13977687, 13 = -3780931, 14 = -4222943, 15 = -13596966, 16 = -2211217, 17 = -10562780} );
Code Explanation:
- Open data table;
- Set age value colors.
Example 11
Summary: Sets up a Graph Builder bar chart to visualize mean profit by product line and quarter from the Profit by Product dataset.
Code:
dt = Open( "data_table.jmp", invisible );
dt:Model << Set Property( "Link ID", 1 );
Code Explanation:
- Open table.
- Set property on model.
Example 12
Summary: Sets up a data table by opening the 'data_table.jmp' file and setting the link ID property.
Code:
dt2 = Open( "data_table.jmp", invisible );
dt2:Person << Set Property( "Link ID", 1 );
Code Explanation:
- Open data table.
- Set link ID property.
Example 13
Summary: Vizualizes mean profit by product line and quarter using Graph Builder in JMP.
Code:
dt = Open("data_table.jmp");
:JOB << Set Property( "Missing Value Codes", {"Other"} );
Code Explanation:
- Open data table.
- Set missing value codes.
Example 14
Summary: Sets up a data table by opening a file and setting properties for the Person column.
Code:
dt2 = Open("data_table.jmp");
dt2:Person << Set Property( "Link ID", 1 );
Code Explanation:
- Open data table;
- Assign table to dt2 variable.
- Set property for Person column.
Example 15
Summary: Configures a side-by-side bar chart in Graph Builder to visualize mean profit by product line and quarter from the Profit by Product dataset.
Code:
dt fam = Open("data_table.jmp");
dt fam:sports << Set Property( "Notes", "Played regularly" );
Code Explanation:
- Open data table.
- Set notes property for sports column.
Set Property using Value Labels
Summary: Configures a data table by setting value labels, enabling value labels, and specifying missing value codes for the sex variable.
Code:
Open("data_table.jmp");
:sex << Value Labels( {"F" = "Female", "M" = "Male"} );
:sex << use Value Labels( 1 );
:sex << set property( "missing value codes", {"F"} );
Code Explanation:
- Open data table;
- Set value labels for sex.
- Enable value labels for sex.
- Set missing value codes for sex.