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
- :
- [., .] --> Scripting, output of regression

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

Apr 26, 2012 4:54 PM
(1018 views)

Hello all,

I'm new to JMP scripting and am working on a regression calculation based on an example in the scripting guide.

This script worked for one 64-point X-Y data set, but on a much larger data set, the script is returning "[., .]" for the beta1 variable below ([., .] is being generated by the X`*Y calculation). X and Y are column vectors.

X2 = J(nrow(X),1) || X;

beta1 = Inv(X2`*X2)*X2`*Y;

Can anyone tell me what this output means and/or what may be going on with the script? I have searched this forum and online and have not had success.

Cheers,

Jay

2 REPLIES

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

Apr 27, 2012 2:36 AM
(927 views)

[.,.] is a vector of missing values. The result indicates that although the matrix dimensions match X or Y contains missing values.

Try this example where Y has a missing value:

X = **[****1**, **2**, **3**, **4****]**;

Y = **[****1**, **2**, **.**, **3****]**;

X2 = J**(** N Row**(** X **)**, **1** **)** || X;

beta1 = Inv**(** X2` * X2 **)** * X2` * Y;

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

Apr 27, 2012 7:17 AM
(927 views)

MS,

Thank you for the advice. Indeed there is a missing value in the Y column.

Jay