turn on suggestions

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

Showing results for

Find a Community

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
- Highlight
- Email to a Friend
- Report Inappropriate Content

06-27-2012 12:03 PM

Hello.

round(Z[,+]+ y - t(Z[+,]+v+m),.1)

I am not familiar with SAS, what [,+], and [+,] will do on Z matrix and what is their difference.

Thank you

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

06-27-2012 01:16 PM

Those are subscript reduction operators. They collapse the dimensionality of your matrix and the + tells SAS to do this by summing.

If you have a matrix Z = {1 2 3, 4 5 6, 7 8 9} then Z[+,] = {(1+4+8) (2+5+8) (3+6+9)} = {12 15 18}, which is a rowvector. Z[,+] = {1+2+3,4+5+6,7+8+9} = {6,15,24}, which is a columnvector.

See http://support.sas.com/documentation/cdl/en/imlug/59656/HTML/default/viewer.htm#workmatrix_sect14.ht... for more info.

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

06-27-2012 01:29 PM

Thank you very much.