turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- How to Save Prediction Formula for Generalized Reg...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Mar 2, 2017 6:05 AM
(1389 views)

In partitions or linear regressions either 'Prediction Formula' or 'Save Prediction Formula' creates a new column in the data table. In the generalized regression platform neither work. In the example below, I suspect this is because I actually want to send a message to the 'Adaptive Lasso with AICc Validation' part of the Generalized Regression report instead of the top level 'Generalized Regression for Oxy'. Any idea how to do this?

dt = Open( "$SAMPLE_DATA/Fitness.JMP" ) //open sample data //Fit model with variable reduction lasso = dt << Fit Model( Y( :Oxy ), Effects( :Age, :Weight, :Runtime, :RunPulse, :RstPulse, :MaxPulse ), Personality( "Generalized Regression" ), Generalized Distribution( "Normal" ), Run( Fit( Estimation Method( Lasso( Adaptive ) ), Validation Method( AICc ) ) ) ); //Save the prediction formula to the table lasso << Save Prediction Formula; lasso << Prediction Formula; lasso << Get Prediction Formula; //None of these work, the log returns 'Fit Generalized[]' for each.

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Mar 2, 2017 8:49 AM
(2737 views)

Solution

The Save Prediction Formula needs to be part of the Fit syntax

```
dt = Open( "$SAMPLE_DATA/Fitness.JMP" ) ; //open sample data
//Fit model with variable reduction
lasso = dt << Fit Model(
Y( :Oxy ),
Effects( :Age, :Weight, :Runtime, :RunPulse, :RstPulse, :MaxPulse ),
Personality( "Generalized Regression" ),
Generalized Distribution( "Normal" ),
Run(
Fit(
Estimation Method( Lasso( Adaptive ) ),
Validation Method( AICc),
Save Prediction Formula(1) )
)
);
```

Jim

2 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Mar 2, 2017 8:49 AM
(2738 views)

The Save Prediction Formula needs to be part of the Fit syntax

```
dt = Open( "$SAMPLE_DATA/Fitness.JMP" ) ; //open sample data
//Fit model with variable reduction
lasso = dt << Fit Model(
Y( :Oxy ),
Effects( :Age, :Weight, :Runtime, :RunPulse, :RstPulse, :MaxPulse ),
Personality( "Generalized Regression" ),
Generalized Distribution( "Normal" ),
Run(
Fit(
Estimation Method( Lasso( Adaptive ) ),
Validation Method( AICc),
Save Prediction Formula(1) )
)
);
```

Jim

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Mar 3, 2017 5:15 AM
(1357 views)