Mixture Profiler
Example 1
Summary: Creates and customizes a Mixture Profiler object to analyze predicted ratings, utilizing term values for components, contour value for predicted rating, top factor, left factor, and right factor.
Code:
dt under test = Open("data_table.jmp");
obj = Mixture Profiler(
Y( :Predicted Rating ),
Mixture Profiler(
1,
Term Value(
Mullet( 0.333333333333333, Lock( 0 ), Show( 1 ) ),
Sheepshead( 0.333333333333333, Lock( 0 ), Show( 1 ) ),
Croaker( 0.333333333333333, Lock( 0 ), Show( 1 ) ),
Temperature( 400, Lock( 1 ), Show( 1 ) )
),
Contour Value( Predicted Rating( 4.5, Min( 3.5 ), Max( 5.5 ) ) ),
Top Factor( Mullet ),
Left Factor( Sheepshead ),
Right Factor( Croaker )
),
SendToReport(
Dispatch( {"Mixture Profiler"}, "Mixture Profiler", FrameBox,
{DispatchSeg( Contour Seg( 1 ), {Line Color( "None" ), Fill Color( {213, 72, 87} )} )}
)
)
);
Code Explanation:
- Open data table.
- Create mixture profiler object.
- Set response variable.
- Configure mixture profiler settings.
- Define term values for components.
- Set contour value for predicted rating.
- Specify top factor.
- Specify left factor.
- Specify right factor.
- Customize report appearance.
Example 2
Summary: Launches Mixture Profiler on 'Pred Formula Y' data and captures log output, extracting the first word to a variable lc.
Code:
dt = Open("data_table.jmp");
obj = dt << Mixture Profiler( Y( :Pred Formula Y ) );
lc = Words( Log Capture( obj << Surface Profiler( 1 ) ), "\!N" )[1];
Code Explanation:
- Open data_table data
- Launch Mixture Profiler on "Pred Formula Y".
- Capture log output.
- Extract first word from log.
- Assign extracted word to variable lc.