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
- :
- Fitting models using data in a matrix

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

Jun 9, 2011 6:29 AM
(757 views)

dt = open("$SAMPLE_DATA/Big Class.jmp");

dt << Fit Model(

Y( :Height ),

Effects( :Weight ),

Personality( Standard Least Squares ),

Run Model

);

This assumes that the data is contained in a data table with columns named as in the example above, but is there a way to fit the same model using just data contained in columns of a matrix, i.e. without needing to turn that matrix into a data table first? If so, what would the syntax be?

Many thanks

3 REPLIES

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

Jun 9, 2011 7:15 AM
(710 views)

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

Jun 9, 2011 7:22 AM
(710 views)

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

Jun 9, 2011 7:57 AM
(710 views)

My main motivation for asking is to maximize the speed of the calculations, as I want to perform a large number of them in rapid succession, and don't want to waste time creating and then deleting large numbers of tables if it can be avoided, as I've found in the past that I can often speed things up dramatically by doing as much work as I can in matrix algebra.

Many thanks - it looks as if I'm on the right track, anyway.