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
- :
- script for saving residuals from fit model

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
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Dec 3, 2010 1:22 PM
(2203 views)

I'm very new to JMP and have just started learning to script in order to analyze my data. I have tried to find an answer to this question in the scripting guide, but haven't found it.

Here is a script I saved. I would like to know where to insert the command "Save residuals" so that the residuals from the regression show up in the data table. I did it for principal components, but for this I just can't get it !

Fit Model(

Y( :JL ),

Effects( :TBL ),

Personality( Standard Least Squares ),

Emphasis( Minimal Report ),

Run Model(

:JL << {Plot Actual by Predicted( 0 ), Plot Regression( 1 ),

Plot Residual by Predicted( 0 ), Plot Effect Leverage( 0 )}

)

);

Thanks !

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Dec 3, 2010 2:17 PM
(3330 views)

Solution

This should do it:

```
Fit Model(
Y( :JL ),
Effects( :TBL ),
Personality( Standard Least Squares ),
Emphasis( Minimal Report ),
Run Model(
:JL << {
Plot Actual by Predicted( 0 ),
Plot Regression( 1 ),
[i][b]residuals(1),[/b][/i]
Plot Residual by Predicted( 0 ),
Plot Effect Leverage( 0 )
}
)
);
```

3 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Dec 3, 2010 2:17 PM
(3331 views)

This should do it:

```
Fit Model(
Y( :JL ),
Effects( :TBL ),
Personality( Standard Least Squares ),
Emphasis( Minimal Report ),
Run Model(
:JL << {
Plot Actual by Predicted( 0 ),
Plot Regression( 1 ),
[i][b]residuals(1),[/b][/i]
Plot Residual by Predicted( 0 ),
Plot Effect Leverage( 0 )
}
)
);
```

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Dec 6, 2010 10:36 AM
(1963 views)

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Oct 4, 2017 4:19 AM
(1529 views)

Hi, cannot see your script. Could you send me a copy please? Thanks!