MAGIC?

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

MAGIC?

David Marso
Administrator
I've been looking over Brian Dates' Bootstrapping code and came across a
truly marvelous GEM which can only be described as Magical.

Here is a self contained instance.

MATRIX.
COMPUTE Data={1,4,7,  2,3,5,  6,8,9,  0,2,1,  3,4,5,  8,7,5,  6,3,1}.
COMPUTE Sort=Data.
COMPUTE Sort(GRADE(Data))=Data.
PRINT Sort.
END MATRIX.

Run MATRIX procedure:
 
SORT
  0  1  1  1  2  2  3  3  3  4  4  5  5  5  6  6  7  7  8  8  9
 
------ END MATRIX -----

I have generalized this to sort multiple columns as follows.

MATRIX.
COMPUTE Data={1,4,7;  2,3,5;  6,8,9;  0,2,1;  3,4,5;  8,7,5;  6,3,1}.
PRINT Data.
COMPUTE Sorted=Data.
LOOP #=1 TO NCOL(Data).
COMPUTE Temp=Data(:,#).
COMPUTE Temp(GRADE(Data(:,#)))=Data(:,#).
COMPUTE Sorted(:,#)=Temp.
END LOOP.
PRINT Sorted.
END MATRIX.
 
DATA
  1  4  7
  2  3  5
  6  8  9
  0  2  1
  3  4  5
  8  7  5
  6  3  1
 
SORTED
  0  2  1
  1  3  1
  2  3  5
  3  4  5
  6  4  5
  6  7  7
  8  8  9

I really wonder WTF is going on under the hood ;-))
I always thought one had to manually reorder the data using the "GRADE"s as
Pointers.... WRONG!
Somebody truly had their shit together!






-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC?

bdates

David,


This is modeled after some work done by Kirill, so he gets the credit. He also has a macro, which I changed somewhat, that sorts multiple columns keeping the data intact across columns and provides the frequency of each of the combinations of values across columns. I was going to adapt it for use in the Bayesian bootstrap of correlations, making sure that it kept value pairs together, but as it turned out, I didn't need it, but I did file it away for possible future use. His title is for the multicolumn sorting is "INTERACTION DUMMY VARIABLES AND MULTI-WAY FREQUENCY AGGREGATION" .


Brian

From: SPSSX(r) Discussion <[hidden email]> on behalf of David Marso <[hidden email]>
Sent: Tuesday, June 19, 2018 12:22:14 PM
To: [hidden email]
Subject: MAGIC?
 
I've been looking over Brian Dates' Bootstrapping code and came across a
truly marvelous GEM which can only be described as Magical.

Here is a self contained instance.

MATRIX.
COMPUTE Data={1,4,7,  2,3,5,  6,8,9,  0,2,1,  3,4,5,  8,7,5,  6,3,1}.
COMPUTE Sort=Data.
COMPUTE Sort(GRADE(Data))=Data.
PRINT Sort.
END MATRIX.

Run MATRIX procedure:
 
SORT
  0  1  1  1  2  2  3  3  3  4  4  5  5  5  6  6  7  7  8  8  9
 
------ END MATRIX -----

I have generalized this to sort multiple columns as follows.

MATRIX.
COMPUTE Data={1,4,7;  2,3,5;  6,8,9;  0,2,1;  3,4,5;  8,7,5;  6,3,1}.
PRINT Data.
COMPUTE Sorted=Data.
LOOP #=1 TO NCOL(Data).
COMPUTE Temp=Data(:,#).
COMPUTE Temp(GRADE(Data(:,#)))=Data(:,#).
COMPUTE Sorted(:,#)=Temp.
END LOOP.
PRINT Sorted.
END MATRIX.
 
DATA
  1  4  7
  2  3  5
  6  8  9
  0  2  1
  3  4  5
  8  7  5
  6  3  1
 
SORTED
  0  2  1
  1  3  1
  2  3  5
  3  4  5
  6  4  5
  6  7  7
  8  8  9

I really wonder WTF is going on under the hood ;-))
I always thought one had to manually reorder the data using the "GRADE"s as
Pointers.... WRONG!
Somebody truly had their shit together!






-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/




=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC?

David Marso
Administrator
I located that and my eyes are bleeding.   For crying out loud Kirill ;-)
Obsfuscate much?

The "magic" mystery has been solved.
Where in the FM is this documented.
I sense some possibilities! WTF were they smoking at U of M back in the day?
I want some.

MATRIX.
COMPUTE A={4,3,2,1}.
COMPUTE B={5,4,3,2}.
COMPUTE C=B(A).
PRINT C.
END MATRIX.
 
C
  2  3  4  5


bdates wrote

> David,
>
>
> This is modeled after some work done by Kirill, so he gets the credit. He
> also has a macro, which I changed somewhat, that sorts multiple columns
> keeping the data intact across columns and provides the frequency of each
> of the combinations of values across columns. I was going to adapt it for
> use in the Bayesian bootstrap of correlations, making sure that it kept
> value pairs together, but as it turned out, I didn't need it, but I did
> file it away for possible future use. His title is for the multicolumn
> sorting is "INTERACTION DUMMY VARIABLES AND MULTI-WAY FREQUENCY
> AGGREGATION" .
>
>
> Brian
> ________________________________
> From: SPSSX(r) Discussion &lt;

> SPSSX-L@.UGA

> &gt; on behalf of David Marso &lt;

> david.marso@

> &gt;
> Sent: Tuesday, June 19, 2018 12:22:14 PM
> To:

> SPSSX-L@.UGA

> Subject: MAGIC?
>
> I've been looking over Brian Dates' Bootstrapping code and came across a
> truly marvelous GEM which can only be described as Magical.
>
> Here is a self contained instance.
>
> MATRIX.
> COMPUTE Data={1,4,7,  2,3,5,  6,8,9,  0,2,1,  3,4,5,  8,7,5,  6,3,1}.
> COMPUTE Sort=Data.
> COMPUTE Sort(GRADE(Data))=Data.
> PRINT Sort.
> END MATRIX.
>
> Run MATRIX procedure:
>
> SORT
>   0  1  1  1  2  2  3  3  3  4  4  5  5  5  6  6  7  7  8  8  9
>
> ------ END MATRIX -----
>
> I have generalized this to sort multiple columns as follows.
>
> MATRIX.
> COMPUTE Data={1,4,7;  2,3,5;  6,8,9;  0,2,1;  3,4,5;  8,7,5;  6,3,1}.
> PRINT Data.
> COMPUTE Sorted=Data.
> LOOP #=1 TO NCOL(Data).
> COMPUTE Temp=Data(:,#).
> COMPUTE Temp(GRADE(Data(:,#)))=Data(:,#).
> COMPUTE Sorted(:,#)=Temp.
> END LOOP.
> PRINT Sorted.
> END MATRIX.
>
> DATA
>   1  4  7
>   2  3  5
>   6  8  9
>   0  2  1
>   3  4  5
>   8  7  5
>   6  3  1
>
> SORTED
>   0  2  1
>   1  3  1
>   2  3  5
>   3  4  5
>   6  4  5
>   6  7  7
>   8  8  9
>
> I really wonder WTF is going on under the hood ;-))
> I always thought one had to manually reorder the data using the "GRADE"s
> as
> Pointers.... WRONG!
> Somebody truly had their shit together!
>
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
> abyssum?"
> --
> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
> SPSSX Discussion | Mailing List
> Archive&lt;http://spssx-discussion.1045642.n5.nabble.com/&gt;
> spssx-discussion.1045642.n5.nabble.com
> This forum is an archive for the mailing list

> spssx-l@.uga

>  (more options) Messages posted here will be sent to this mailing list.
>
>
>
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD
>
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC? -SORT in place in MATRIX-.

David Marso
Administrator
In fact we don't even need to make a copy.

MATRIX.
COMPUTE B={5,4,3,2}.
COMPUTE B=B(GRADE(B)).
PRINT B.
END MATRIX.

Run MATRIX procedure:
 
B
  2  3  4  5
 
------ END MATRIX -----



-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC? -SORT in place in MATRIX-.

Jon Peck
It's really no different from B[1,2,3,4].

On Tue, Jun 19, 2018 at 6:29 PM, David Marso <[hidden email]> wrote:
In fact we don't even need to make a copy.

MATRIX.
COMPUTE B={5,4,3,2}.
COMPUTE B=B(GRADE(B)).
PRINT B.
END MATRIX.

Run MATRIX procedure:

B
  2  3  4  5

------ END MATRIX -----



-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD



--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC?

bdates
In reply to this post by David Marso

And to think that's where I teach. I guess my question about whether to pursue using SPSS in light of the fact that the department in which I teach has made a move to Excel is answered. SPSS it is! That's where the 'magic' lies.


Brian

From: SPSSX(r) Discussion <[hidden email]> on behalf of David Marso <[hidden email]>
Sent: Tuesday, June 19, 2018 7:34:44 PM
To: [hidden email]
Subject: Re: MAGIC?
 
I located that and my eyes are bleeding.   For crying out loud Kirill ;-)
Obsfuscate much?

The "magic" mystery has been solved.
Where in the FM is this documented.
I sense some possibilities! WTF were they smoking at U of M back in the day?
I want some.

MATRIX.
COMPUTE A={4,3,2,1}.
COMPUTE B={5,4,3,2}.
COMPUTE C=B(A).
PRINT C.
END MATRIX.
 
C
  2  3  4  5


bdates wrote
> David,
>
>
> This is modeled after some work done by Kirill, so he gets the credit. He
> also has a macro, which I changed somewhat, that sorts multiple columns
> keeping the data intact across columns and provides the frequency of each
> of the combinations of values across columns. I was going to adapt it for
> use in the Bayesian bootstrap of correlations, making sure that it kept
> value pairs together, but as it turned out, I didn't need it, but I did
> file it away for possible future use. His title is for the multicolumn
> sorting is "INTERACTION DUMMY VARIABLES AND MULTI-WAY FREQUENCY
> AGGREGATION" .
>
>
> Brian
> ________________________________
> From: SPSSX(r) Discussion &lt;

> SPSSX-L@.UGA

> &gt; on behalf of David Marso &lt;

> david.marso@

> &gt;
> Sent: Tuesday, June 19, 2018 12:22:14 PM
> To:

> SPSSX-L@.UGA

> Subject: MAGIC?
>
> I've been looking over Brian Dates' Bootstrapping code and came across a
> truly marvelous GEM which can only be described as Magical.
>
> Here is a self contained instance.
>
> MATRIX.
> COMPUTE Data={1,4,7,  2,3,5,  6,8,9,  0,2,1,  3,4,5,  8,7,5,  6,3,1}.
> COMPUTE Sort=Data.
> COMPUTE Sort(GRADE(Data))=Data.
> PRINT Sort.
> END MATRIX.
>
> Run MATRIX procedure:
>
> SORT
>   0  1  1  1  2  2  3  3  3  4  4  5  5  5  6  6  7  7  8  8  9
>
> ------ END MATRIX -----
>
> I have generalized this to sort multiple columns as follows.
>
> MATRIX.
> COMPUTE Data={1,4,7;  2,3,5;  6,8,9;  0,2,1;  3,4,5;  8,7,5;  6,3,1}.
> PRINT Data.
> COMPUTE Sorted=Data.
> LOOP #=1 TO NCOL(Data).
> COMPUTE Temp=Data(:,#).
> COMPUTE Temp(GRADE(Data(:,#)))=Data(:,#).
> COMPUTE Sorted(:,#)=Temp.
> END LOOP.
> PRINT Sorted.
> END MATRIX.
>
> DATA
>   1  4  7
>   2  3  5
>   6  8  9
>   0  2  1
>   3  4  5
>   8  7  5
>   6  3  1
>
> SORTED
>   0  2  1
>   1  3  1
>   2  3  5
>   3  4  5
>   6  4  5
>   6  7  7
>   8  8  9
>
> I really wonder WTF is going on under the hood ;-))
> I always thought one had to manually reorder the data using the "GRADE"s
> as
> Pointers.... WRONG!
> Somebody truly had their shit together!
>
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
> abyssum?"
> --
> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
> SPSSX Discussion | Mailing List
> Archive&lt;http://spssx-discussion.1045642.n5.nabble.com/&gt;
> spssx-discussion.1045642.n5.nabble.com
> This forum is an archive for the mailing list

> spssx-l@.uga

>  (more options) Messages posted here will be sent to this mailing list.
>
>
>
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD
>
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC? -SORT in place in MATRIX-.

David Marso
Administrator
In reply to this post by Jon Peck
That might be valid in Python but this is SPSS MATRIX language.
Undocumented feature?
Square brackets aren't used either.
Just wondering if this is elaborated in the FM?


Jon Peck wrote
> It's really no different from B[1,2,3,4].
>
> On Tue, Jun 19, 2018 at 6:29 PM, David Marso &lt;

> david.marso@

> &gt; wrote:
>
>> In fact we don't even need to make a copy.
>>
>> MATRIX.
>> COMPUTE B={5,4,3,2}.
>> COMPUTE B=B(GRADE(B)).
>> PRINT B.
>> END MATRIX.
>>
>> Run MATRIX procedure:
>>
>> B
>>   2  3  4  5
>>
>> ------ END MATRIX -----
>>
>>
>>
>> -----
>> Please reply to the list and not to my personal email.
>> Those desiring my consulting or training services please feel free to
>> email me.
>> ---
>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>> porcos
>> ne forte conculcent eas pedibus suis."
>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>> in
>> abyssum?"
>> --
>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>>

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>>
>
>
>
> --
> Jon K Peck

> jkpeck@

>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD

See



-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC?

David Marso
Administrator
In reply to this post by bdates
Excel is suitable for doing relatively simple things with relatively simple,
relatively small, well structured data.
Subseptible to unfortunate fatfingering of random data cells forever
untraceable, forever wrong, unknowable.
"WTF is this?" answerable only by anguished tracking of referenced GIGO
across multiple layers of confusion and nested formulae from Satan's Anus. I
LOVE Excel for diddling RSRSWSD.  But for doing statistics? What? Do you
think I'm batshit crazy? Don't answer that.
Meanwhile, in an academic setting, SPSS can be procured by a student for
almost nothing. The decision is a no brainer.



bdates wrote
> And to think that's where I teach. I guess my question about whether to
> pursue using SPSS in light of the fact that the department in which I
> teach has made a move to Excel is answered. SPSS it is! That's where the
> 'magic' lies.
>
>
> Brian
> ________________________________
> From: SPSSX(r) Discussion &lt;

> SPSSX-L@.UGA

> &gt; on behalf of David Marso &lt;

> david.marso@

> &gt;
> Sent: Tuesday, June 19, 2018 7:34:44 PM
> To:

> SPSSX-L@.UGA

> Subject: Re: MAGIC?
>
> I located that and my eyes are bleeding.   For crying out loud Kirill ;-)
> Obsfuscate much?
>
> The "magic" mystery has been solved.
> Where in the FM is this documented.
> I sense some possibilities! WTF were they smoking at U of M back in the
> day?
> I want some.
>
> MATRIX.
> COMPUTE A={4,3,2,1}.
> COMPUTE B={5,4,3,2}.
> COMPUTE C=B(A).
> PRINT C.
> END MATRIX.
>
> C
>   2  3  4  5
>
>
> bdates wrote
>> David,
>>
>>
>> This is modeled after some work done by Kirill, so he gets the credit. He
>> also has a macro, which I changed somewhat, that sorts multiple columns
>> keeping the data intact across columns and provides the frequency of each
>> of the combinations of values across columns. I was going to adapt it for
>> use in the Bayesian bootstrap of correlations, making sure that it kept
>> value pairs together, but as it turned out, I didn't need it, but I did
>> file it away for possible future use. His title is for the multicolumn
>> sorting is "INTERACTION DUMMY VARIABLES AND MULTI-WAY FREQUENCY
>> AGGREGATION" .
>>
>>
>> Brian
>> ________________________________
>> From: SPSSX(r) Discussion &lt;
>
>> SPSSX-L@.UGA
>
>> &gt; on behalf of David Marso &lt;
>
>> david.marso@
>
>> &gt;
>> Sent: Tuesday, June 19, 2018 12:22:14 PM
>> To:
>
>> SPSSX-L@.UGA
>
>> Subject: MAGIC?
>>
>> I've been looking over Brian Dates' Bootstrapping code and came across a
>> truly marvelous GEM which can only be described as Magical.
>>
>> Here is a self contained instance.
>>
>> MATRIX.
>> COMPUTE Data={1,4,7,  2,3,5,  6,8,9,  0,2,1,  3,4,5,  8,7,5,  6,3,1}.
>> COMPUTE Sort=Data.
>> COMPUTE Sort(GRADE(Data))=Data.
>> PRINT Sort.
>> END MATRIX.
>>
>> Run MATRIX procedure:
>>
>> SORT
>>   0  1  1  1  2  2  3  3  3  4  4  5  5  5  6  6  7  7  8  8  9
>>
>> ------ END MATRIX -----
>>
>> I have generalized this to sort multiple columns as follows.
>>
>> MATRIX.
>> COMPUTE Data={1,4,7;  2,3,5;  6,8,9;  0,2,1;  3,4,5;  8,7,5;  6,3,1}.
>> PRINT Data.
>> COMPUTE Sorted=Data.
>> LOOP #=1 TO NCOL(Data).
>> COMPUTE Temp=Data(:,#).
>> COMPUTE Temp(GRADE(Data(:,#)))=Data(:,#).
>> COMPUTE Sorted(:,#)=Temp.
>> END LOOP.
>> PRINT Sorted.
>> END MATRIX.
>>
>> DATA
>>   1  4  7
>>   2  3  5
>>   6  8  9
>>   0  2  1
>>   3  4  5
>>   8  7  5
>>   6  3  1
>>
>> SORTED
>>   0  2  1
>>   1  3  1
>>   2  3  5
>>   3  4  5
>>   6  4  5
>>   6  7  7
>>   8  8  9
>>
>> I really wonder WTF is going on under the hood ;-))
>> I always thought one had to manually reorder the data using the "GRADE"s
>> as
>> Pointers.... WRONG!
>> Somebody truly had their shit together!
>>
>>
>>
>>
>>
>>
>> -----
>> Please reply to the list and not to my personal email.
>> Those desiring my consulting or training services please feel free to
>> email me.
>> ---
>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>> porcos
>> ne forte conculcent eas pedibus suis."
>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>> in
>> abyssum?"
>> --
>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>
>> SPSSX Discussion | Mailing List
>> Archive&lt;http://spssx-discussion.1045642.n5.nabble.com/&gt;
>> spssx-discussion.1045642.n5.nabble.com
>> This forum is an archive for the mailing list
>
>> spssx-l@.uga
>
>>  (more options) Messages posted here will be sent to this mailing list.
>>
>>
>>
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>>
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
> abyssum?"
> --
> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD
>
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC?

Bruce Weaver
Administrator
Care to explain RSRSWSD?  


David Marso wrote

> Excel is suitable for doing relatively simple things with relatively
> simple,
> relatively small, well structured data.
> Subseptible to unfortunate fatfingering of random data cells forever
> untraceable, forever wrong, unknowable.
> "WTF is this?" answerable only by anguished tracking of referenced GIGO
> across multiple layers of confusion and nested formulae from Satan's Anus.
> I
> LOVE Excel for diddling RSRSWSD.  But for doing statistics? What? Do you
> think I'm batshit crazy? Don't answer that.
> Meanwhile, in an academic setting, SPSS can be procured by a student for
> almost nothing. The decision is a no brainer.
>
>
>
> bdates wrote
>> And to think that's where I teach. I guess my question about whether to
>> pursue using SPSS in light of the fact that the department in which I
>> teach has made a move to Excel is answered. SPSS it is! That's where the
>> 'magic' lies.
>>
>>
>> Brian
>> ________________________________
>> From: SPSSX(r) Discussion &lt;
>
>> SPSSX-L@.UGA
>
>> &gt; on behalf of David Marso &lt;
>
>> david.marso@
>
>> &gt;
>> Sent: Tuesday, June 19, 2018 7:34:44 PM
>> To:
>
>> SPSSX-L@.UGA
>
>> Subject: Re: MAGIC?
>>
>> I located that and my eyes are bleeding.   For crying out loud Kirill ;-)
>> Obsfuscate much?
>>
>> The "magic" mystery has been solved.
>> Where in the FM is this documented.
>> I sense some possibilities! WTF were they smoking at U of M back in the
>> day?
>> I want some.
>>
>> MATRIX.
>> COMPUTE A={4,3,2,1}.
>> COMPUTE B={5,4,3,2}.
>> COMPUTE C=B(A).
>> PRINT C.
>> END MATRIX.
>>
>> C
>>   2  3  4  5
>>
>>
>> bdates wrote
>>> David,
>>>
>>>
>>> This is modeled after some work done by Kirill, so he gets the credit.
>>> He
>>> also has a macro, which I changed somewhat, that sorts multiple columns
>>> keeping the data intact across columns and provides the frequency of
>>> each
>>> of the combinations of values across columns. I was going to adapt it
>>> for
>>> use in the Bayesian bootstrap of correlations, making sure that it kept
>>> value pairs together, but as it turned out, I didn't need it, but I did
>>> file it away for possible future use. His title is for the multicolumn
>>> sorting is "INTERACTION DUMMY VARIABLES AND MULTI-WAY FREQUENCY
>>> AGGREGATION" .
>>>
>>>
>>> Brian
>>> ________________________________
>>> From: SPSSX(r) Discussion &lt;
>>
>>> SPSSX-L@.UGA
>>
>>> &gt; on behalf of David Marso &lt;
>>
>>> david.marso@
>>
>>> &gt;
>>> Sent: Tuesday, June 19, 2018 12:22:14 PM
>>> To:
>>
>>> SPSSX-L@.UGA
>>
>>> Subject: MAGIC?
>>>
>>> I've been looking over Brian Dates' Bootstrapping code and came across a
>>> truly marvelous GEM which can only be described as Magical.
>>>
>>> Here is a self contained instance.
>>>
>>> MATRIX.
>>> COMPUTE Data={1,4,7,  2,3,5,  6,8,9,  0,2,1,  3,4,5,  8,7,5,  6,3,1}.
>>> COMPUTE Sort=Data.
>>> COMPUTE Sort(GRADE(Data))=Data.
>>> PRINT Sort.
>>> END MATRIX.
>>>
>>> Run MATRIX procedure:
>>>
>>> SORT
>>>   0  1  1  1  2  2  3  3  3  4  4  5  5  5  6  6  7  7  8  8  9
>>>
>>> ------ END MATRIX -----
>>>
>>> I have generalized this to sort multiple columns as follows.
>>>
>>> MATRIX.
>>> COMPUTE Data={1,4,7;  2,3,5;  6,8,9;  0,2,1;  3,4,5;  8,7,5;  6,3,1}.
>>> PRINT Data.
>>> COMPUTE Sorted=Data.
>>> LOOP #=1 TO NCOL(Data).
>>> COMPUTE Temp=Data(:,#).
>>> COMPUTE Temp(GRADE(Data(:,#)))=Data(:,#).
>>> COMPUTE Sorted(:,#)=Temp.
>>> END LOOP.
>>> PRINT Sorted.
>>> END MATRIX.
>>>
>>> DATA
>>>   1  4  7
>>>   2  3  5
>>>   6  8  9
>>>   0  2  1
>>>   3  4  5
>>>   8  7  5
>>>   6  3  1
>>>
>>> SORTED
>>>   0  2  1
>>>   1  3  1
>>>   2  3  5
>>>   3  4  5
>>>   6  4  5
>>>   6  7  7
>>>   8  8  9
>>>
>>> I really wonder WTF is going on under the hood ;-))
>>> I always thought one had to manually reorder the data using the "GRADE"s
>>> as
>>> Pointers.... WRONG!
>>> Somebody truly had their shit together!
>>>
>>>
>>>
>>>
>>>
>>>
>>> -----
>>> Please reply to the list and not to my personal email.
>>> Those desiring my consulting or training services please feel free to
>>> email me.
>>> ---
>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>> porcos
>>> ne forte conculcent eas pedibus suis."
>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>>> in
>>> abyssum?"
>>> --
>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>
>>> SPSSX Discussion | Mailing List
>>> Archive&lt;http://spssx-discussion.1045642.n5.nabble.com/&gt;
>>> spssx-discussion.1045642.n5.nabble.com
>>> This forum is an archive for the mailing list
>>
>>> spssx-l@.uga
>>
>>>  (more options) Messages posted here will be sent to this mailing list.
>>>
>>>
>>>
>>>
>>> =====================
>>> To manage your subscription to SPSSX-L, send a message to
>>
>>> LISTSERV@.UGA
>>
>>>  (not to SPSSX-L), with no body text except the
>>> command. To leave the list, send the command
>>> SIGNOFF SPSSX-L
>>> For a list of commands to manage subscriptions, send the command
>>> INFO REFCARD
>>>
>>>
>>> =====================
>>> To manage your subscription to SPSSX-L, send a message to
>>
>>> LISTSERV@.UGA
>>
>>>  (not to SPSSX-L), with no body text except the
>>> command. To leave the list, send the command
>>> SIGNOFF SPSSX-L
>>> For a list of commands to manage subscriptions, send the command
>>> INFO REFCARD
>>
>>
>>
>>
>>
>> -----
>> Please reply to the list and not to my personal email.
>> Those desiring my consulting or training services please feel free to
>> email me.
>> ---
>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>> porcos
>> ne forte conculcent eas pedibus suis."
>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>> in
>> abyssum?"
>> --
>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>>
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
> abyssum?"
> --
> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC?

David Marso
Administrator
"Care to explain RSRSWSD?  "
COFFEE TIME Bruce ;-)
Relatively Simple Relatively Small Well Structured Data.
Gotcha buddy.
Now your thoughts on the Magic?...
It is most profound IMNSHO and GREATLY simplifies some current
https://en.m.wikipedia.org/wiki/Brainfuck like cloggage.
Cheers!

Bruce Weaver wrote

> Care to explain RSRSWSD?  
> David Marso wrote
>> Excel is suitable for doing relatively simple things with relatively
>> simple,
>> relatively small, well structured data.
>> Subseptible to unfortunate fatfingering of random data cells forever
>> untraceable, forever wrong, unknowable.
>> "WTF is this?" answerable only by anguished tracking of referenced GIGO
>> across multiple layers of confusion and nested formulae from Satan's
>> Anus.
>> I
>> LOVE Excel for diddling RSRSWSD.  But for doing statistics? What? Do you
>> think I'm batshit crazy? Don't answer that.
>> Meanwhile, in an academic setting, SPSS can be procured by a student for
>> almost nothing. The decision is a no brainer.
>>
>>
>>
>> bdates wrote
>>> And to think that's where I teach. I guess my question about whether to
>>> pursue using SPSS in light of the fact that the department in which I
>>> teach has made a move to Excel is answered. SPSS it is! That's where the
>>> 'magic' lies.
>>>
>>>
>>> Brian
>>> ________________________________
>>> From: SPSSX(r) Discussion &lt;
>>
>>> SPSSX-L@.UGA
>>
>>> &gt; on behalf of David Marso &lt;
>>
>>> david.marso@
>>
>>> &gt;
>>> Sent: Tuesday, June 19, 2018 7:34:44 PM
>>> To:
>>
>>> SPSSX-L@.UGA
>>
>>> Subject: Re: MAGIC?
>>>
>>> I located that and my eyes are bleeding.   For crying out loud Kirill
>>> ;-)
>>> Obsfuscate much?
>>>
>>> The "magic" mystery has been solved.
>>> Where in the FM is this documented.
>>> I sense some possibilities! WTF were they smoking at U of M back in the
>>> day?
>>> I want some.
>>>
>>> MATRIX.
>>> COMPUTE A={4,3,2,1}.
>>> COMPUTE B={5,4,3,2}.
>>> COMPUTE C=B(A).
>>> PRINT C.
>>> END MATRIX.
>>>
>>> C
>>>   2  3  4  5
>>>
>>>
>>> bdates wrote
>>>> David,
>>>>
>>>>
>>>> This is modeled after some work done by Kirill, so he gets the credit.
>>>> He
>>>> also has a macro, which I changed somewhat, that sorts multiple columns
>>>> keeping the data intact across columns and provides the frequency of
>>>> each
>>>> of the combinations of values across columns. I was going to adapt it
>>>> for
>>>> use in the Bayesian bootstrap of correlations, making sure that it kept
>>>> value pairs together, but as it turned out, I didn't need it, but I did
>>>> file it away for possible future use. His title is for the multicolumn
>>>> sorting is "INTERACTION DUMMY VARIABLES AND MULTI-WAY FREQUENCY
>>>> AGGREGATION" .
>>>>
>>>>
>>>> Brian
>>>> ________________________________
>>>> From: SPSSX(r) Discussion &lt;
>>>
>>>> SPSSX-L@.UGA
>>>
>>>> &gt; on behalf of David Marso &lt;
>>>
>>>> david.marso@
>>>
>>>> &gt;
>>>> Sent: Tuesday, June 19, 2018 12:22:14 PM
>>>> To:
>>>
>>>> SPSSX-L@.UGA
>>>
>>>> Subject: MAGIC?
>>>>
>>>> I've been looking over Brian Dates' Bootstrapping code and came across
>>>> a
>>>> truly marvelous GEM which can only be described as Magical.
>>>>
>>>> Here is a self contained instance.
>>>>
>>>> MATRIX.
>>>> COMPUTE Data={1,4,7,  2,3,5,  6,8,9,  0,2,1,  3,4,5,  8,7,5,  6,3,1}.
>>>> COMPUTE Sort=Data.
>>>> COMPUTE Sort(GRADE(Data))=Data.
>>>> PRINT Sort.
>>>> END MATRIX.
>>>>
>>>> Run MATRIX procedure:
>>>>
>>>> SORT
>>>>   0  1  1  1  2  2  3  3  3  4  4  5  5  5  6  6  7  7  8  8  9
>>>>
>>>> ------ END MATRIX -----
>>>>
>>>> I have generalized this to sort multiple columns as follows.
>>>>
>>>> MATRIX.
>>>> COMPUTE Data={1,4,7;  2,3,5;  6,8,9;  0,2,1;  3,4,5;  8,7,5;  6,3,1}.
>>>> PRINT Data.
>>>> COMPUTE Sorted=Data.
>>>> LOOP #=1 TO NCOL(Data).
>>>> COMPUTE Temp=Data(:,#).
>>>> COMPUTE Temp(GRADE(Data(:,#)))=Data(:,#).
>>>> COMPUTE Sorted(:,#)=Temp.
>>>> END LOOP.
>>>> PRINT Sorted.
>>>> END MATRIX.
>>>>
>>>> DATA
>>>>   1  4  7
>>>>   2  3  5
>>>>   6  8  9
>>>>   0  2  1
>>>>   3  4  5
>>>>   8  7  5
>>>>   6  3  1
>>>>
>>>> SORTED
>>>>   0  2  1
>>>>   1  3  1
>>>>   2  3  5
>>>>   3  4  5
>>>>   6  4  5
>>>>   6  7  7
>>>>   8  8  9
>>>>
>>>> I really wonder WTF is going on under the hood ;-))
>>>> I always thought one had to manually reorder the data using the
>>>> "GRADE"s
>>>> as
>>>> Pointers.... WRONG!
>>>> Somebody truly had their shit together!
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -----
>>>> Please reply to the list and not to my personal email.
>>>> Those desiring my consulting or training services please feel free to
>>>> email me.
>>>> ---
>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>> porcos
>>>> ne forte conculcent eas pedibus suis."
>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>>>> in
>>>> abyssum?"
>>>> --
>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>
>>>> SPSSX Discussion | Mailing List
>>>> Archive&lt;http://spssx-discussion.1045642.n5.nabble.com/&gt;
>>>> spssx-discussion.1045642.n5.nabble.com
>>>> This forum is an archive for the mailing list
>>>
>>>> spssx-l@.uga
>>>
>>>>  (more options) Messages posted here will be sent to this mailing list.
>>>>
>>>>
>>>>
>>>>
>>>> =====================
>>>> To manage your subscription to SPSSX-L, send a message to
>>>
>>>> LISTSERV@.UGA
>>>
>>>>  (not to SPSSX-L), with no body text except the
>>>> command. To leave the list, send the command
>>>> SIGNOFF SPSSX-L
>>>> For a list of commands to manage subscriptions, send the command
>>>> INFO REFCARD
>>>>
>>>>
>>>> =====================
>>>> To manage your subscription to SPSSX-L, send a message to
>>>
>>>> LISTSERV@.UGA
>>>
>>>>  (not to SPSSX-L), with no body text except the
>>>> command. To leave the list, send the command
>>>> SIGNOFF SPSSX-L
>>>> For a list of commands to manage subscriptions, send the command
>>>> INFO REFCARD
>>>
>>>
>>>
>>>
>>>
>>> -----
>>> Please reply to the list and not to my personal email.
>>> Those desiring my consulting or training services please feel free to
>>> email me.
>>> ---
>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>> porcos
>>> ne forte conculcent eas pedibus suis."
>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>>> in
>>> abyssum?"
>>> --
>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>
>>> =====================
>>> To manage your subscription to SPSSX-L, send a message to
>>
>>> LISTSERV@.UGA
>>
>>>  (not to SPSSX-L), with no body text except the
>>> command. To leave the list, send the command
>>> SIGNOFF SPSSX-L
>>> For a list of commands to manage subscriptions, send the command
>>> INFO REFCARD
>>>
>>>
>>> =====================
>>> To manage your subscription to SPSSX-L, send a message to
>>
>>> LISTSERV@.UGA
>>
>>>  (not to SPSSX-L), with no body text except the
>>> command. To leave the list, send the command
>>> SIGNOFF SPSSX-L
>>> For a list of commands to manage subscriptions, send the command
>>> INFO REFCARD
>>
>>
>>
>>
>>
>> -----
>> Please reply to the list and not to my personal email.
>> Those desiring my consulting or training services please feel free to
>> email me.
>> ---
>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>> porcos
>> ne forte conculcent eas pedibus suis."
>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>> in
>> abyssum?"
>> --
>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> --
> Bruce Weaver

> bweaver@

> http://sites.google.com/a/lakeheadu.ca/bweaver/
>
> "When all else fails, RTFM."
>
> NOTE: My Hotmail account is not monitored regularly.
> To send me an e-mail, please use the address shown above.
>
> --
> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC?

Bruce Weaver
Administrator
Thanks.  Yes, I should have got that one.  

For my reaction to that Wikipedia page, please see the Gospel of John,
Chapter 11, verse 35.  



David Marso wrote

> "Care to explain RSRSWSD?  "
> COFFEE TIME Bruce ;-)
> Relatively Simple Relatively Small Well Structured Data.
> Gotcha buddy.
> Now your thoughts on the Magic?...
> It is most profound IMNSHO and GREATLY simplifies some current
> https://en.m.wikipedia.org/wiki/Brainfuck like cloggage.
> Cheers!
>
> Bruce Weaver wrote
>> Care to explain RSRSWSD?  
>> David Marso wrote
>>> Excel is suitable for doing relatively simple things with relatively
>>> simple,
>>> relatively small, well structured data.
>>> Subseptible to unfortunate fatfingering of random data cells forever
>>> untraceable, forever wrong, unknowable.
>>> "WTF is this?" answerable only by anguished tracking of referenced GIGO
>>> across multiple layers of confusion and nested formulae from Satan's
>>> Anus.
>>> I
>>> LOVE Excel for diddling RSRSWSD.  But for doing statistics? What? Do you
>>> think I'm batshit crazy? Don't answer that.
>>> Meanwhile, in an academic setting, SPSS can be procured by a student for
>>> almost nothing. The decision is a no brainer.
>>>
>>>
>>>
>>> bdates wrote
>>>> And to think that's where I teach. I guess my question about whether to
>>>> pursue using SPSS in light of the fact that the department in which I
>>>> teach has made a move to Excel is answered. SPSS it is! That's where
>>>> the
>>>> 'magic' lies.
>>>>
>>>>
>>>> Brian
>>>> ________________________________
>>>> From: SPSSX(r) Discussion &lt;
>>>
>>>> SPSSX-L@.UGA
>>>
>>>> &gt; on behalf of David Marso &lt;
>>>
>>>> david.marso@
>>>
>>>> &gt;
>>>> Sent: Tuesday, June 19, 2018 7:34:44 PM
>>>> To:
>>>
>>>> SPSSX-L@.UGA
>>>
>>>> Subject: Re: MAGIC?
>>>>
>>>> I located that and my eyes are bleeding.   For crying out loud Kirill
>>>> ;-)
>>>> Obsfuscate much?
>>>>
>>>> The "magic" mystery has been solved.
>>>> Where in the FM is this documented.
>>>> I sense some possibilities! WTF were they smoking at U of M back in the
>>>> day?
>>>> I want some.
>>>>
>>>> MATRIX.
>>>> COMPUTE A={4,3,2,1}.
>>>> COMPUTE B={5,4,3,2}.
>>>> COMPUTE C=B(A).
>>>> PRINT C.
>>>> END MATRIX.
>>>>
>>>> C
>>>>   2  3  4  5
>>>>
>>>>
>>>> bdates wrote
>>>>> David,
>>>>>
>>>>>
>>>>> This is modeled after some work done by Kirill, so he gets the credit.
>>>>> He
>>>>> also has a macro, which I changed somewhat, that sorts multiple
>>>>> columns
>>>>> keeping the data intact across columns and provides the frequency of
>>>>> each
>>>>> of the combinations of values across columns. I was going to adapt it
>>>>> for
>>>>> use in the Bayesian bootstrap of correlations, making sure that it
>>>>> kept
>>>>> value pairs together, but as it turned out, I didn't need it, but I
>>>>> did
>>>>> file it away for possible future use. His title is for the multicolumn
>>>>> sorting is "INTERACTION DUMMY VARIABLES AND MULTI-WAY FREQUENCY
>>>>> AGGREGATION" .
>>>>>
>>>>>
>>>>> Brian
>>>>> ________________________________
>>>>> From: SPSSX(r) Discussion &lt;
>>>>
>>>>> SPSSX-L@.UGA
>>>>
>>>>> &gt; on behalf of David Marso &lt;
>>>>
>>>>> david.marso@
>>>>
>>>>> &gt;
>>>>> Sent: Tuesday, June 19, 2018 12:22:14 PM
>>>>> To:
>>>>
>>>>> SPSSX-L@.UGA
>>>>
>>>>> Subject: MAGIC?
>>>>>
>>>>> I've been looking over Brian Dates' Bootstrapping code and came across
>>>>> a
>>>>> truly marvelous GEM which can only be described as Magical.
>>>>>
>>>>> Here is a self contained instance.
>>>>>
>>>>> MATRIX.
>>>>> COMPUTE Data={1,4,7,  2,3,5,  6,8,9,  0,2,1,  3,4,5,  8,7,5,  6,3,1}.
>>>>> COMPUTE Sort=Data.
>>>>> COMPUTE Sort(GRADE(Data))=Data.
>>>>> PRINT Sort.
>>>>> END MATRIX.
>>>>>
>>>>> Run MATRIX procedure:
>>>>>
>>>>> SORT
>>>>>   0  1  1  1  2  2  3  3  3  4  4  5  5  5  6  6  7  7  8  8  9
>>>>>
>>>>> ------ END MATRIX -----
>>>>>
>>>>> I have generalized this to sort multiple columns as follows.
>>>>>
>>>>> MATRIX.
>>>>> COMPUTE Data={1,4,7;  2,3,5;  6,8,9;  0,2,1;  3,4,5;  8,7,5;  6,3,1}.
>>>>> PRINT Data.
>>>>> COMPUTE Sorted=Data.
>>>>> LOOP #=1 TO NCOL(Data).
>>>>> COMPUTE Temp=Data(:,#).
>>>>> COMPUTE Temp(GRADE(Data(:,#)))=Data(:,#).
>>>>> COMPUTE Sorted(:,#)=Temp.
>>>>> END LOOP.
>>>>> PRINT Sorted.
>>>>> END MATRIX.
>>>>>
>>>>> DATA
>>>>>   1  4  7
>>>>>   2  3  5
>>>>>   6  8  9
>>>>>   0  2  1
>>>>>   3  4  5
>>>>>   8  7  5
>>>>>   6  3  1
>>>>>
>>>>> SORTED
>>>>>   0  2  1
>>>>>   1  3  1
>>>>>   2  3  5
>>>>>   3  4  5
>>>>>   6  4  5
>>>>>   6  7  7
>>>>>   8  8  9
>>>>>
>>>>> I really wonder WTF is going on under the hood ;-))
>>>>> I always thought one had to manually reorder the data using the
>>>>> "GRADE"s
>>>>> as
>>>>> Pointers.... WRONG!
>>>>> Somebody truly had their shit together!
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -----
>>>>> Please reply to the list and not to my personal email.
>>>>> Those desiring my consulting or training services please feel free to
>>>>> email me.
>>>>> ---
>>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>>> porcos
>>>>> ne forte conculcent eas pedibus suis."
>>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum
>>>>> cliff
>>>>> in
>>>>> abyssum?"
>>>>> --
>>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>>
>>>>> SPSSX Discussion | Mailing List
>>>>> Archive&lt;http://spssx-discussion.1045642.n5.nabble.com/&gt;
>>>>> spssx-discussion.1045642.n5.nabble.com
>>>>> This forum is an archive for the mailing list
>>>>
>>>>> spssx-l@.uga
>>>>
>>>>>  (more options) Messages posted here will be sent to this mailing
>>>>> list.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> =====================
>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>
>>>>> LISTSERV@.UGA
>>>>
>>>>>  (not to SPSSX-L), with no body text except the
>>>>> command. To leave the list, send the command
>>>>> SIGNOFF SPSSX-L
>>>>> For a list of commands to manage subscriptions, send the command
>>>>> INFO REFCARD
>>>>>
>>>>>
>>>>> =====================
>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>
>>>>> LISTSERV@.UGA
>>>>
>>>>>  (not to SPSSX-L), with no body text except the
>>>>> command. To leave the list, send the command
>>>>> SIGNOFF SPSSX-L
>>>>> For a list of commands to manage subscriptions, send the command
>>>>> INFO REFCARD
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -----
>>>> Please reply to the list and not to my personal email.
>>>> Those desiring my consulting or training services please feel free to
>>>> email me.
>>>> ---
>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>> porcos
>>>> ne forte conculcent eas pedibus suis."
>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>>>> in
>>>> abyssum?"
>>>> --
>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>
>>>> =====================
>>>> To manage your subscription to SPSSX-L, send a message to
>>>
>>>> LISTSERV@.UGA
>>>
>>>>  (not to SPSSX-L), with no body text except the
>>>> command. To leave the list, send the command
>>>> SIGNOFF SPSSX-L
>>>> For a list of commands to manage subscriptions, send the command
>>>> INFO REFCARD
>>>>
>>>>
>>>> =====================
>>>> To manage your subscription to SPSSX-L, send a message to
>>>
>>>> LISTSERV@.UGA
>>>
>>>>  (not to SPSSX-L), with no body text except the
>>>> command. To leave the list, send the command
>>>> SIGNOFF SPSSX-L
>>>> For a list of commands to manage subscriptions, send the command
>>>> INFO REFCARD
>>>
>>>
>>>
>>>
>>>
>>> -----
>>> Please reply to the list and not to my personal email.
>>> Those desiring my consulting or training services please feel free to
>>> email me.
>>> ---
>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>> porcos
>>> ne forte conculcent eas pedibus suis."
>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>>> in
>>> abyssum?"
>>> --
>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>
>>> =====================
>>> To manage your subscription to SPSSX-L, send a message to
>>
>>> LISTSERV@.UGA
>>
>>>  (not to SPSSX-L), with no body text except the
>>> command. To leave the list, send the command
>>> SIGNOFF SPSSX-L
>>> For a list of commands to manage subscriptions, send the command
>>> INFO REFCARD
>>
>>
>>
>>
>>
>> -----
>> --
>> Bruce Weaver
>
>> bweaver@
>
>> http://sites.google.com/a/lakeheadu.ca/bweaver/
>>
>> "When all else fails, RTFM."
>>
>> NOTE: My Hotmail account is not monitored regularly.
>> To send me an e-mail, please use the address shown above.
>>
>> --
>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
> abyssum?"
> --
> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC?

David Marso
Administrator
DEFINE !WhatTheHeckIsThatBrainFuck( !POS !CHAREND (">") /!POS !CMDEND).
/* Intentional BRAINFUCK here ;-))).
COMPUTE !2={1,  0,0,  0,0,  0,0,!1}.
COMPUTE !2(4:5)={MOD(!1,2) EQ 0, MOD(!1,2) EQ 1} *
{!1/2,!1/2+1;(!1+1)/2,(!1+1)/2}.
COMPUTE !2(2:7)={MOD(!2(4),2) EQ 0,MOD(!2(4),2) EQ 1} *
       {!2(4)/2, !2(4)/2, !2(4:5),(!2(5)+!2(4))/2,(!2(5)+!2(4))/2;
     
(!2(4)-1)/2,(!2(4)-1)/2+1,!2(4:5),(!2(5)+!2(4)-1)/2,!2(5)+(!2(4)-1)/2+1 }.  
!ENDDEFINE.

MATRIX.
COMPUTE N=666.
!WhatTheHeckIsThatBrainFuck N > JesusWet.
Print JesusWet /FORMAT "F3.0".
END MATRIX.


Bruce Weaver wrote

> Thanks.  Yes, I should have got that one.  
>
> For my reaction to that Wikipedia page, please see the Gospel of John,
> Chapter 11, verse 35.  
>
>
>
> David Marso wrote
>> "Care to explain RSRSWSD?  "
>> COFFEE TIME Bruce ;-)
>> Relatively Simple Relatively Small Well Structured Data.
>> Gotcha buddy.
>> Now your thoughts on the Magic?...
>> It is most profound IMNSHO and GREATLY simplifies some current
>> https://en.m.wikipedia.org/wiki/Brainfuck like cloggage.
>> Cheers!
>>
>> Bruce Weaver wrote
>>> Care to explain RSRSWSD?  
>>> David Marso wrote
>>>> Excel is suitable for doing relatively simple things with relatively
>>>> simple,
>>>> relatively small, well structured data.
>>>> Subseptible to unfortunate fatfingering of random data cells forever
>>>> untraceable, forever wrong, unknowable.
>>>> "WTF is this?" answerable only by anguished tracking of referenced GIGO
>>>> across multiple layers of confusion and nested formulae from Satan's
>>>> Anus.
>>>> I
>>>> LOVE Excel for diddling RSRSWSD.  But for doing statistics? What? Do
>>>> you
>>>> think I'm batshit crazy? Don't answer that.
>>>> Meanwhile, in an academic setting, SPSS can be procured by a student
>>>> for
>>>> almost nothing. The decision is a no brainer.
>>>>
>>>>
>>>>
>>>> bdates wrote
>>>>> And to think that's where I teach. I guess my question about whether
>>>>> to
>>>>> pursue using SPSS in light of the fact that the department in which I
>>>>> teach has made a move to Excel is answered. SPSS it is! That's where
>>>>> the
>>>>> 'magic' lies.
>>>>>
>>>>>
>>>>> Brian
>>>>> ________________________________
>>>>> From: SPSSX(r) Discussion &lt;
>>>>
>>>>> SPSSX-L@.UGA
>>>>
>>>>> &gt; on behalf of David Marso &lt;
>>>>
>>>>> david.marso@
>>>>
>>>>> &gt;
>>>>> Sent: Tuesday, June 19, 2018 7:34:44 PM
>>>>> To:
>>>>
>>>>> SPSSX-L@.UGA
>>>>
>>>>> Subject: Re: MAGIC?
>>>>>
>>>>> I located that and my eyes are bleeding.   For crying out loud Kirill
>>>>> ;-)
>>>>> Obsfuscate much?
>>>>>
>>>>> The "magic" mystery has been solved.
>>>>> Where in the FM is this documented.
>>>>> I sense some possibilities! WTF were they smoking at U of M back in
>>>>> the
>>>>> day?
>>>>> I want some.
>>>>>
>>>>> MATRIX.
>>>>> COMPUTE A={4,3,2,1}.
>>>>> COMPUTE B={5,4,3,2}.
>>>>> COMPUTE C=B(A).
>>>>> PRINT C.
>>>>> END MATRIX.
>>>>>
>>>>> C
>>>>>   2  3  4  5
>>>>>
>>>>>
>>>>> bdates wrote
>>>>>> David,
>>>>>>
>>>>>>
>>>>>> This is modeled after some work done by Kirill, so he gets the
>>>>>> credit.
>>>>>> He
>>>>>> also has a macro, which I changed somewhat, that sorts multiple
>>>>>> columns
>>>>>> keeping the data intact across columns and provides the frequency of
>>>>>> each
>>>>>> of the combinations of values across columns. I was going to adapt it
>>>>>> for
>>>>>> use in the Bayesian bootstrap of correlations, making sure that it
>>>>>> kept
>>>>>> value pairs together, but as it turned out, I didn't need it, but I
>>>>>> did
>>>>>> file it away for possible future use. His title is for the
>>>>>> multicolumn
>>>>>> sorting is "INTERACTION DUMMY VARIABLES AND MULTI-WAY FREQUENCY
>>>>>> AGGREGATION" .
>>>>>>
>>>>>>
>>>>>> Brian
>>>>>> ________________________________
>>>>>> From: SPSSX(r) Discussion &lt;
>>>>>
>>>>>> SPSSX-L@.UGA
>>>>>
>>>>>> &gt; on behalf of David Marso &lt;
>>>>>
>>>>>> david.marso@
>>>>>
>>>>>> &gt;
>>>>>> Sent: Tuesday, June 19, 2018 12:22:14 PM
>>>>>> To:
>>>>>
>>>>>> SPSSX-L@.UGA
>>>>>
>>>>>> Subject: MAGIC?
>>>>>>
>>>>>> I've been looking over Brian Dates' Bootstrapping code and came
>>>>>> across
>>>>>> a
>>>>>> truly marvelous GEM which can only be described as Magical.
>>>>>>
>>>>>> Here is a self contained instance.
>>>>>>
>>>>>> MATRIX.
>>>>>> COMPUTE Data={1,4,7,  2,3,5,  6,8,9,  0,2,1,  3,4,5,  8,7,5,  6,3,1}.
>>>>>> COMPUTE Sort=Data.
>>>>>> COMPUTE Sort(GRADE(Data))=Data.
>>>>>> PRINT Sort.
>>>>>> END MATRIX.
>>>>>>
>>>>>> Run MATRIX procedure:
>>>>>>
>>>>>> SORT
>>>>>>   0  1  1  1  2  2  3  3  3  4  4  5  5  5  6  6  7  7  8  8  9
>>>>>>
>>>>>> ------ END MATRIX -----
>>>>>>
>>>>>> I have generalized this to sort multiple columns as follows.
>>>>>>
>>>>>> MATRIX.
>>>>>> COMPUTE Data={1,4,7;  2,3,5;  6,8,9;  0,2,1;  3,4,5;  8,7,5;  6,3,1}.
>>>>>> PRINT Data.
>>>>>> COMPUTE Sorted=Data.
>>>>>> LOOP #=1 TO NCOL(Data).
>>>>>> COMPUTE Temp=Data(:,#).
>>>>>> COMPUTE Temp(GRADE(Data(:,#)))=Data(:,#).
>>>>>> COMPUTE Sorted(:,#)=Temp.
>>>>>> END LOOP.
>>>>>> PRINT Sorted.
>>>>>> END MATRIX.
>>>>>>
>>>>>> DATA
>>>>>>   1  4  7
>>>>>>   2  3  5
>>>>>>   6  8  9
>>>>>>   0  2  1
>>>>>>   3  4  5
>>>>>>   8  7  5
>>>>>>   6  3  1
>>>>>>
>>>>>> SORTED
>>>>>>   0  2  1
>>>>>>   1  3  1
>>>>>>   2  3  5
>>>>>>   3  4  5
>>>>>>   6  4  5
>>>>>>   6  7  7
>>>>>>   8  8  9
>>>>>>
>>>>>> I really wonder WTF is going on under the hood ;-))
>>>>>> I always thought one had to manually reorder the data using the
>>>>>> "GRADE"s
>>>>>> as
>>>>>> Pointers.... WRONG!
>>>>>> Somebody truly had their shit together!
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> -----
>>>>>> Please reply to the list and not to my personal email.
>>>>>> Those desiring my consulting or training services please feel free to
>>>>>> email me.
>>>>>> ---
>>>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>>>> porcos
>>>>>> ne forte conculcent eas pedibus suis."
>>>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum
>>>>>> cliff
>>>>>> in
>>>>>> abyssum?"
>>>>>> --
>>>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>>>
>>>>>> SPSSX Discussion | Mailing List
>>>>>> Archive&lt;http://spssx-discussion.1045642.n5.nabble.com/&gt;
>>>>>> spssx-discussion.1045642.n5.nabble.com
>>>>>> This forum is an archive for the mailing list
>>>>>
>>>>>> spssx-l@.uga
>>>>>
>>>>>>  (more options) Messages posted here will be sent to this mailing
>>>>>> list.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> =====================
>>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>>
>>>>>> LISTSERV@.UGA
>>>>>
>>>>>>  (not to SPSSX-L), with no body text except the
>>>>>> command. To leave the list, send the command
>>>>>> SIGNOFF SPSSX-L
>>>>>> For a list of commands to manage subscriptions, send the command
>>>>>> INFO REFCARD
>>>>>>
>>>>>>
>>>>>> =====================
>>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>>
>>>>>> LISTSERV@.UGA
>>>>>
>>>>>>  (not to SPSSX-L), with no body text except the
>>>>>> command. To leave the list, send the command
>>>>>> SIGNOFF SPSSX-L
>>>>>> For a list of commands to manage subscriptions, send the command
>>>>>> INFO REFCARD
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -----
>>>>> Please reply to the list and not to my personal email.
>>>>> Those desiring my consulting or training services please feel free to
>>>>> email me.
>>>>> ---
>>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>>> porcos
>>>>> ne forte conculcent eas pedibus suis."
>>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum
>>>>> cliff
>>>>> in
>>>>> abyssum?"
>>>>> --
>>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>>
>>>>> =====================
>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>
>>>>> LISTSERV@.UGA
>>>>
>>>>>  (not to SPSSX-L), with no body text except the
>>>>> command. To leave the list, send the command
>>>>> SIGNOFF SPSSX-L
>>>>> For a list of commands to manage subscriptions, send the command
>>>>> INFO REFCARD
>>>>>
>>>>>
>>>>> =====================
>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>
>>>>> LISTSERV@.UGA
>>>>
>>>>>  (not to SPSSX-L), with no body text except the
>>>>> command. To leave the list, send the command
>>>>> SIGNOFF SPSSX-L
>>>>> For a list of commands to manage subscriptions, send the command
>>>>> INFO REFCARD
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -----
>>>> Please reply to the list and not to my personal email.
>>>> Those desiring my consulting or training services please feel free to
>>>> email me.
>>>> ---
>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>> porcos
>>>> ne forte conculcent eas pedibus suis."
>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>>>> in
>>>> abyssum?"
>>>> --
>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>
>>>> =====================
>>>> To manage your subscription to SPSSX-L, send a message to
>>>
>>>> LISTSERV@.UGA
>>>
>>>>  (not to SPSSX-L), with no body text except the
>>>> command. To leave the list, send the command
>>>> SIGNOFF SPSSX-L
>>>> For a list of commands to manage subscriptions, send the command
>>>> INFO REFCARD
>>>
>>>
>>>
>>>
>>>
>>> -----
>>> --
>>> Bruce Weaver
>>
>>> bweaver@
>>
>>> http://sites.google.com/a/lakeheadu.ca/bweaver/
>>>
>>> "When all else fails, RTFM."
>>>
>>> NOTE: My Hotmail account is not monitored regularly.
>>> To send me an e-mail, please use the address shown above.
>>>
>>> --
>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>
>>> =====================
>>> To manage your subscription to SPSSX-L, send a message to
>>
>>> LISTSERV@.UGA
>>
>>>  (not to SPSSX-L), with no body text except the
>>> command. To leave the list, send the command
>>> SIGNOFF SPSSX-L
>>> For a list of commands to manage subscriptions, send the command
>>> INFO REFCARD
>>
>>
>>
>>
>>
>> -----
>> Please reply to the list and not to my personal email.
>> Those desiring my consulting or training services please feel free to
>> email me.
>> ---
>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>> porcos
>> ne forte conculcent eas pedibus suis."
>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>> in
>> abyssum?"
>> --
>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> --
> Bruce Weaver

> bweaver@

> http://sites.google.com/a/lakeheadu.ca/bweaver/
>
> "When all else fails, RTFM."
>
> NOTE: My Hotmail account is not monitored regularly.
> To send me an e-mail, please use the address shown above.
>
> --
> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC?

Bruce Weaver
Administrator
Two comments.

1. I had to delete the blank line in the final COMPUTE command in the macro
definition to get it to run.  (Perhaps Nabble inserted a blank line?)  

2. He didn't *wet*.  He *wept*!  





David Marso wrote

> DEFINE !WhatTheHeckIsThatBrainFuck( !POS !CHAREND (">") /!POS !CMDEND).
> /* Intentional BRAINFUCK here ;-))).
> COMPUTE !2={1,  0,0,  0,0,  0,0,!1}.
> COMPUTE !2(4:5)={MOD(!1,2) EQ 0, MOD(!1,2) EQ 1} *
> {!1/2,!1/2+1;(!1+1)/2,(!1+1)/2}.
> COMPUTE !2(2:7)={MOD(!2(4),2) EQ 0,MOD(!2(4),2) EQ 1} *
>        {!2(4)/2, !2(4)/2, !2(4:5),(!2(5)+!2(4))/2,(!2(5)+!2(4))/2;
>      
> (!2(4)-1)/2,(!2(4)-1)/2+1,!2(4:5),(!2(5)+!2(4)-1)/2,!2(5)+(!2(4)-1)/2+1 }.  
> !ENDDEFINE.
>
> MATRIX.
> COMPUTE N=666.
> !WhatTheHeckIsThatBrainFuck N > JesusWet.
> Print JesusWet /FORMAT "F3.0".
> END MATRIX.
>
>
> Bruce Weaver wrote
>> Thanks.  Yes, I should have got that one.  
>>
>> For my reaction to that Wikipedia page, please see the Gospel of John,
>> Chapter 11, verse 35.  
>>
>>
>>
>> David Marso wrote
>>> "Care to explain RSRSWSD?  "
>>> COFFEE TIME Bruce ;-)
>>> Relatively Simple Relatively Small Well Structured Data.
>>> Gotcha buddy.
>>> Now your thoughts on the Magic?...
>>> It is most profound IMNSHO and GREATLY simplifies some current
>>> https://en.m.wikipedia.org/wiki/Brainfuck like cloggage.
>>> Cheers!
>>>
>>> Bruce Weaver wrote
>>>> Care to explain RSRSWSD?  
>>>> David Marso wrote
>>>>> Excel is suitable for doing relatively simple things with relatively
>>>>> simple,
>>>>> relatively small, well structured data.
>>>>> Subseptible to unfortunate fatfingering of random data cells forever
>>>>> untraceable, forever wrong, unknowable.
>>>>> "WTF is this?" answerable only by anguished tracking of referenced
>>>>> GIGO
>>>>> across multiple layers of confusion and nested formulae from Satan's
>>>>> Anus.
>>>>> I
>>>>> LOVE Excel for diddling RSRSWSD.  But for doing statistics? What? Do
>>>>> you
>>>>> think I'm batshit crazy? Don't answer that.
>>>>> Meanwhile, in an academic setting, SPSS can be procured by a student
>>>>> for
>>>>> almost nothing. The decision is a no brainer.
>>>>>
>>>>>
>>>>>
>>>>> bdates wrote
>>>>>> And to think that's where I teach. I guess my question about whether
>>>>>> to
>>>>>> pursue using SPSS in light of the fact that the department in which I
>>>>>> teach has made a move to Excel is answered. SPSS it is! That's where
>>>>>> the
>>>>>> 'magic' lies.
>>>>>>
>>>>>>
>>>>>> Brian
>>>>>> ________________________________
>>>>>> From: SPSSX(r) Discussion &lt;
>>>>>
>>>>>> SPSSX-L@.UGA
>>>>>
>>>>>> &gt; on behalf of David Marso &lt;
>>>>>
>>>>>> david.marso@
>>>>>
>>>>>> &gt;
>>>>>> Sent: Tuesday, June 19, 2018 7:34:44 PM
>>>>>> To:
>>>>>
>>>>>> SPSSX-L@.UGA
>>>>>
>>>>>> Subject: Re: MAGIC?
>>>>>>
>>>>>> I located that and my eyes are bleeding.   For crying out loud Kirill
>>>>>> ;-)
>>>>>> Obsfuscate much?
>>>>>>
>>>>>> The "magic" mystery has been solved.
>>>>>> Where in the FM is this documented.
>>>>>> I sense some possibilities! WTF were they smoking at U of M back in
>>>>>> the
>>>>>> day?
>>>>>> I want some.
>>>>>>
>>>>>> MATRIX.
>>>>>> COMPUTE A={4,3,2,1}.
>>>>>> COMPUTE B={5,4,3,2}.
>>>>>> COMPUTE C=B(A).
>>>>>> PRINT C.
>>>>>> END MATRIX.
>>>>>>
>>>>>> C
>>>>>>   2  3  4  5
>>>>>>
>>>>>>
>>>>>> bdates wrote
>>>>>>> David,
>>>>>>>
>>>>>>>
>>>>>>> This is modeled after some work done by Kirill, so he gets the
>>>>>>> credit.
>>>>>>> He
>>>>>>> also has a macro, which I changed somewhat, that sorts multiple
>>>>>>> columns
>>>>>>> keeping the data intact across columns and provides the frequency of
>>>>>>> each
>>>>>>> of the combinations of values across columns. I was going to adapt
>>>>>>> it
>>>>>>> for
>>>>>>> use in the Bayesian bootstrap of correlations, making sure that it
>>>>>>> kept
>>>>>>> value pairs together, but as it turned out, I didn't need it, but I
>>>>>>> did
>>>>>>> file it away for possible future use. His title is for the
>>>>>>> multicolumn
>>>>>>> sorting is "INTERACTION DUMMY VARIABLES AND MULTI-WAY FREQUENCY
>>>>>>> AGGREGATION" .
>>>>>>>
>>>>>>>
>>>>>>> Brian
>>>>>>> ________________________________
>>>>>>> From: SPSSX(r) Discussion &lt;
>>>>>>
>>>>>>> SPSSX-L@.UGA
>>>>>>
>>>>>>> &gt; on behalf of David Marso &lt;
>>>>>>
>>>>>>> david.marso@
>>>>>>
>>>>>>> &gt;
>>>>>>> Sent: Tuesday, June 19, 2018 12:22:14 PM
>>>>>>> To:
>>>>>>
>>>>>>> SPSSX-L@.UGA
>>>>>>
>>>>>>> Subject: MAGIC?
>>>>>>>
>>>>>>> I've been looking over Brian Dates' Bootstrapping code and came
>>>>>>> across
>>>>>>> a
>>>>>>> truly marvelous GEM which can only be described as Magical.
>>>>>>>
>>>>>>> Here is a self contained instance.
>>>>>>>
>>>>>>> MATRIX.
>>>>>>> COMPUTE Data={1,4,7,  2,3,5,  6,8,9,  0,2,1,  3,4,5,  8,7,5,
>>>>>>> 6,3,1}.
>>>>>>> COMPUTE Sort=Data.
>>>>>>> COMPUTE Sort(GRADE(Data))=Data.
>>>>>>> PRINT Sort.
>>>>>>> END MATRIX.
>>>>>>>
>>>>>>> Run MATRIX procedure:
>>>>>>>
>>>>>>> SORT
>>>>>>>   0  1  1  1  2  2  3  3  3  4  4  5  5  5  6  6  7  7  8  8  9
>>>>>>>
>>>>>>> ------ END MATRIX -----
>>>>>>>
>>>>>>> I have generalized this to sort multiple columns as follows.
>>>>>>>
>>>>>>> MATRIX.
>>>>>>> COMPUTE Data={1,4,7;  2,3,5;  6,8,9;  0,2,1;  3,4,5;  8,7,5;
>>>>>>> 6,3,1}.
>>>>>>> PRINT Data.
>>>>>>> COMPUTE Sorted=Data.
>>>>>>> LOOP #=1 TO NCOL(Data).
>>>>>>> COMPUTE Temp=Data(:,#).
>>>>>>> COMPUTE Temp(GRADE(Data(:,#)))=Data(:,#).
>>>>>>> COMPUTE Sorted(:,#)=Temp.
>>>>>>> END LOOP.
>>>>>>> PRINT Sorted.
>>>>>>> END MATRIX.
>>>>>>>
>>>>>>> DATA
>>>>>>>   1  4  7
>>>>>>>   2  3  5
>>>>>>>   6  8  9
>>>>>>>   0  2  1
>>>>>>>   3  4  5
>>>>>>>   8  7  5
>>>>>>>   6  3  1
>>>>>>>
>>>>>>> SORTED
>>>>>>>   0  2  1
>>>>>>>   1  3  1
>>>>>>>   2  3  5
>>>>>>>   3  4  5
>>>>>>>   6  4  5
>>>>>>>   6  7  7
>>>>>>>   8  8  9
>>>>>>>
>>>>>>> I really wonder WTF is going on under the hood ;-))
>>>>>>> I always thought one had to manually reorder the data using the
>>>>>>> "GRADE"s
>>>>>>> as
>>>>>>> Pointers.... WRONG!
>>>>>>> Somebody truly had their shit together!
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -----
>>>>>>> Please reply to the list and not to my personal email.
>>>>>>> Those desiring my consulting or training services please feel free
>>>>>>> to
>>>>>>> email me.
>>>>>>> ---
>>>>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>>>>> porcos
>>>>>>> ne forte conculcent eas pedibus suis."
>>>>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum
>>>>>>> cliff
>>>>>>> in
>>>>>>> abyssum?"
>>>>>>> --
>>>>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>>>>
>>>>>>> SPSSX Discussion | Mailing List
>>>>>>> Archive&lt;http://spssx-discussion.1045642.n5.nabble.com/&gt;
>>>>>>> spssx-discussion.1045642.n5.nabble.com
>>>>>>> This forum is an archive for the mailing list
>>>>>>
>>>>>>> spssx-l@.uga
>>>>>>
>>>>>>>  (more options) Messages posted here will be sent to this mailing
>>>>>>> list.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> =====================
>>>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>>>
>>>>>>> LISTSERV@.UGA
>>>>>>
>>>>>>>  (not to SPSSX-L), with no body text except the
>>>>>>> command. To leave the list, send the command
>>>>>>> SIGNOFF SPSSX-L
>>>>>>> For a list of commands to manage subscriptions, send the command
>>>>>>> INFO REFCARD
>>>>>>>
>>>>>>>
>>>>>>> =====================
>>>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>>>
>>>>>>> LISTSERV@.UGA
>>>>>>
>>>>>>>  (not to SPSSX-L), with no body text except the
>>>>>>> command. To leave the list, send the command
>>>>>>> SIGNOFF SPSSX-L
>>>>>>> For a list of commands to manage subscriptions, send the command
>>>>>>> INFO REFCARD
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> -----
>>>>>> Please reply to the list and not to my personal email.
>>>>>> Those desiring my consulting or training services please feel free to
>>>>>> email me.
>>>>>> ---
>>>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>>>> porcos
>>>>>> ne forte conculcent eas pedibus suis."
>>>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum
>>>>>> cliff
>>>>>> in
>>>>>> abyssum?"
>>>>>> --
>>>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>>>
>>>>>> =====================
>>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>>
>>>>>> LISTSERV@.UGA
>>>>>
>>>>>>  (not to SPSSX-L), with no body text except the
>>>>>> command. To leave the list, send the command
>>>>>> SIGNOFF SPSSX-L
>>>>>> For a list of commands to manage subscriptions, send the command
>>>>>> INFO REFCARD
>>>>>>
>>>>>>
>>>>>> =====================
>>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>>
>>>>>> LISTSERV@.UGA
>>>>>
>>>>>>  (not to SPSSX-L), with no body text except the
>>>>>> command. To leave the list, send the command
>>>>>> SIGNOFF SPSSX-L
>>>>>> For a list of commands to manage subscriptions, send the command
>>>>>> INFO REFCARD
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -----
>>>>> Please reply to the list and not to my personal email.
>>>>> Those desiring my consulting or training services please feel free to
>>>>> email me.
>>>>> ---
>>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>>> porcos
>>>>> ne forte conculcent eas pedibus suis."
>>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum
>>>>> cliff
>>>>> in
>>>>> abyssum?"
>>>>> --
>>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>>
>>>>> =====================
>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>
>>>>> LISTSERV@.UGA
>>>>
>>>>>  (not to SPSSX-L), with no body text except the
>>>>> command. To leave the list, send the command
>>>>> SIGNOFF SPSSX-L
>>>>> For a list of commands to manage subscriptions, send the command
>>>>> INFO REFCARD
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -----
>>>> --
>>>> Bruce Weaver
>>>
>>>> bweaver@
>>>
>>>> http://sites.google.com/a/lakeheadu.ca/bweaver/
>>>>
>>>> "When all else fails, RTFM."
>>>>
>>>> NOTE: My Hotmail account is not monitored regularly.
>>>> To send me an e-mail, please use the address shown above.
>>>>
>>>> --
>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>
>>>> =====================
>>>> To manage your subscription to SPSSX-L, send a message to
>>>
>>>> LISTSERV@.UGA
>>>
>>>>  (not to SPSSX-L), with no body text except the
>>>> command. To leave the list, send the command
>>>> SIGNOFF SPSSX-L
>>>> For a list of commands to manage subscriptions, send the command
>>>> INFO REFCARD
>>>
>>>
>>>
>>>
>>>
>>> -----
>>> Please reply to the list and not to my personal email.
>>> Those desiring my consulting or training services please feel free to
>>> email me.
>>> ---
>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>> porcos
>>> ne forte conculcent eas pedibus suis."
>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>>> in
>>> abyssum?"
>>> --
>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>
>>> =====================
>>> To manage your subscription to SPSSX-L, send a message to
>>
>>> LISTSERV@.UGA
>>
>>>  (not to SPSSX-L), with no body text except the
>>> command. To leave the list, send the command
>>> SIGNOFF SPSSX-L
>>> For a list of commands to manage subscriptions, send the command
>>> INFO REFCARD
>>
>>
>>
>>
>>
>> -----
>> --
>> Bruce Weaver
>
>> bweaver@
>
>> http://sites.google.com/a/lakeheadu.ca/bweaver/
>>
>> "When all else fails, RTFM."
>>
>> NOTE: My Hotmail account is not monitored regularly.
>> To send me an e-mail, please use the address shown above.
>>
>> --
>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
> abyssum?"
> --
> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.
Reply | Threaded
Open this post in threaded view
|

Re: MAGIC?

David Marso
Administrator
8 character limit in MATRIX.
Maybe  JesuWept ?
What do you suppose that mess does?


Bruce Weaver wrote

> Two comments.
>
> 1. I had to delete the blank line in the final COMPUTE command in the
> macro
> definition to get it to run.  (Perhaps Nabble inserted a blank line?)  
>
> 2. He didn't *wet*.  He *wept*!  
>
>
>
>
>
> David Marso wrote
>> DEFINE !WhatTheHeckIsThatBrainFuck( !POS !CHAREND (">") /!POS !CMDEND).
>> /* Intentional BRAINFUCK here ;-))).
>> COMPUTE !2={1,  0,0,  0,0,  0,0,!1}.
>> COMPUTE !2(4:5)={MOD(!1,2) EQ 0, MOD(!1,2) EQ 1} *
>> {!1/2,!1/2+1;(!1+1)/2,(!1+1)/2}.
>> COMPUTE !2(2:7)={MOD(!2(4),2) EQ 0,MOD(!2(4),2) EQ 1} *
>>        {!2(4)/2, !2(4)/2, !2(4:5),(!2(5)+!2(4))/2,(!2(5)+!2(4))/2;
>>      
>> (!2(4)-1)/2,(!2(4)-1)/2+1,!2(4:5),(!2(5)+!2(4)-1)/2,!2(5)+(!2(4)-1)/2+1
>> }.  
>> !ENDDEFINE.
>>
>> MATRIX.
>> COMPUTE N=666.
>> !WhatTheHeckIsThatBrainFuck N > JesusWet.
>> Print JesusWet /FORMAT "F3.0".
>> END MATRIX.
>>
>>
>> Bruce Weaver wrote
>>> Thanks.  Yes, I should have got that one.  
>>>
>>> For my reaction to that Wikipedia page, please see the Gospel of John,
>>> Chapter 11, verse 35.  
>>>
>>>
>>>
>>> David Marso wrote
>>>> "Care to explain RSRSWSD?  "
>>>> COFFEE TIME Bruce ;-)
>>>> Relatively Simple Relatively Small Well Structured Data.
>>>> Gotcha buddy.
>>>> Now your thoughts on the Magic?...
>>>> It is most profound IMNSHO and GREATLY simplifies some current
>>>> https://en.m.wikipedia.org/wiki/Brainfuck like cloggage.
>>>> Cheers!
>>>>
>>>> Bruce Weaver wrote
>>>>> Care to explain RSRSWSD?  
>>>>> David Marso wrote
>>>>>> Excel is suitable for doing relatively simple things with relatively
>>>>>> simple,
>>>>>> relatively small, well structured data.
>>>>>> Subseptible to unfortunate fatfingering of random data cells forever
>>>>>> untraceable, forever wrong, unknowable.
>>>>>> "WTF is this?" answerable only by anguished tracking of referenced
>>>>>> GIGO
>>>>>> across multiple layers of confusion and nested formulae from Satan's
>>>>>> Anus.
>>>>>> I
>>>>>> LOVE Excel for diddling RSRSWSD.  But for doing statistics? What? Do
>>>>>> you
>>>>>> think I'm batshit crazy? Don't answer that.
>>>>>> Meanwhile, in an academic setting, SPSS can be procured by a student
>>>>>> for
>>>>>> almost nothing. The decision is a no brainer.
>>>>>>
>>>>>>
>>>>>>
>>>>>> bdates wrote
>>>>>>> And to think that's where I teach. I guess my question about whether
>>>>>>> to
>>>>>>> pursue using SPSS in light of the fact that the department in which
>>>>>>> I
>>>>>>> teach has made a move to Excel is answered. SPSS it is! That's where
>>>>>>> the
>>>>>>> 'magic' lies.
>>>>>>>
>>>>>>>
>>>>>>> Brian
>>>>>>> ________________________________
>>>>>>> From: SPSSX(r) Discussion &lt;
>>>>>>
>>>>>>> SPSSX-L@.UGA
>>>>>>
>>>>>>> &gt; on behalf of David Marso &lt;
>>>>>>
>>>>>>> david.marso@
>>>>>>
>>>>>>> &gt;
>>>>>>> Sent: Tuesday, June 19, 2018 7:34:44 PM
>>>>>>> To:
>>>>>>
>>>>>>> SPSSX-L@.UGA
>>>>>>
>>>>>>> Subject: Re: MAGIC?
>>>>>>>
>>>>>>> I located that and my eyes are bleeding.   For crying out loud
>>>>>>> Kirill
>>>>>>> ;-)
>>>>>>> Obsfuscate much?
>>>>>>>
>>>>>>> The "magic" mystery has been solved.
>>>>>>> Where in the FM is this documented.
>>>>>>> I sense some possibilities! WTF were they smoking at U of M back in
>>>>>>> the
>>>>>>> day?
>>>>>>> I want some.
>>>>>>>
>>>>>>> MATRIX.
>>>>>>> COMPUTE A={4,3,2,1}.
>>>>>>> COMPUTE B={5,4,3,2}.
>>>>>>> COMPUTE C=B(A).
>>>>>>> PRINT C.
>>>>>>> END MATRIX.
>>>>>>>
>>>>>>> C
>>>>>>>   2  3  4  5
>>>>>>>
>>>>>>>
>>>>>>> bdates wrote
>>>>>>>> David,
>>>>>>>>
>>>>>>>>
>>>>>>>> This is modeled after some work done by Kirill, so he gets the
>>>>>>>> credit.
>>>>>>>> He
>>>>>>>> also has a macro, which I changed somewhat, that sorts multiple
>>>>>>>> columns
>>>>>>>> keeping the data intact across columns and provides the frequency
>>>>>>>> of
>>>>>>>> each
>>>>>>>> of the combinations of values across columns. I was going to adapt
>>>>>>>> it
>>>>>>>> for
>>>>>>>> use in the Bayesian bootstrap of correlations, making sure that it
>>>>>>>> kept
>>>>>>>> value pairs together, but as it turned out, I didn't need it, but I
>>>>>>>> did
>>>>>>>> file it away for possible future use. His title is for the
>>>>>>>> multicolumn
>>>>>>>> sorting is "INTERACTION DUMMY VARIABLES AND MULTI-WAY FREQUENCY
>>>>>>>> AGGREGATION" .
>>>>>>>>
>>>>>>>>
>>>>>>>> Brian
>>>>>>>> ________________________________
>>>>>>>> From: SPSSX(r) Discussion &lt;
>>>>>>>
>>>>>>>> SPSSX-L@.UGA
>>>>>>>
>>>>>>>> &gt; on behalf of David Marso &lt;
>>>>>>>
>>>>>>>> david.marso@
>>>>>>>
>>>>>>>> &gt;
>>>>>>>> Sent: Tuesday, June 19, 2018 12:22:14 PM
>>>>>>>> To:
>>>>>>>
>>>>>>>> SPSSX-L@.UGA
>>>>>>>
>>>>>>>> Subject: MAGIC?
>>>>>>>>
>>>>>>>> I've been looking over Brian Dates' Bootstrapping code and came
>>>>>>>> across
>>>>>>>> a
>>>>>>>> truly marvelous GEM which can only be described as Magical.
>>>>>>>>
>>>>>>>> Here is a self contained instance.
>>>>>>>>
>>>>>>>> MATRIX.
>>>>>>>> COMPUTE Data={1,4,7,  2,3,5,  6,8,9,  0,2,1,  3,4,5,  8,7,5,
>>>>>>>> 6,3,1}.
>>>>>>>> COMPUTE Sort=Data.
>>>>>>>> COMPUTE Sort(GRADE(Data))=Data.
>>>>>>>> PRINT Sort.
>>>>>>>> END MATRIX.
>>>>>>>>
>>>>>>>> Run MATRIX procedure:
>>>>>>>>
>>>>>>>> SORT
>>>>>>>>   0  1  1  1  2  2  3  3  3  4  4  5  5  5  6  6  7  7  8  8  9
>>>>>>>>
>>>>>>>> ------ END MATRIX -----
>>>>>>>>
>>>>>>>> I have generalized this to sort multiple columns as follows.
>>>>>>>>
>>>>>>>> MATRIX.
>>>>>>>> COMPUTE Data={1,4,7;  2,3,5;  6,8,9;  0,2,1;  3,4,5;  8,7,5;
>>>>>>>> 6,3,1}.
>>>>>>>> PRINT Data.
>>>>>>>> COMPUTE Sorted=Data.
>>>>>>>> LOOP #=1 TO NCOL(Data).
>>>>>>>> COMPUTE Temp=Data(:,#).
>>>>>>>> COMPUTE Temp(GRADE(Data(:,#)))=Data(:,#).
>>>>>>>> COMPUTE Sorted(:,#)=Temp.
>>>>>>>> END LOOP.
>>>>>>>> PRINT Sorted.
>>>>>>>> END MATRIX.
>>>>>>>>
>>>>>>>> DATA
>>>>>>>>   1  4  7
>>>>>>>>   2  3  5
>>>>>>>>   6  8  9
>>>>>>>>   0  2  1
>>>>>>>>   3  4  5
>>>>>>>>   8  7  5
>>>>>>>>   6  3  1
>>>>>>>>
>>>>>>>> SORTED
>>>>>>>>   0  2  1
>>>>>>>>   1  3  1
>>>>>>>>   2  3  5
>>>>>>>>   3  4  5
>>>>>>>>   6  4  5
>>>>>>>>   6  7  7
>>>>>>>>   8  8  9
>>>>>>>>
>>>>>>>> I really wonder WTF is going on under the hood ;-))
>>>>>>>> I always thought one had to manually reorder the data using the
>>>>>>>> "GRADE"s
>>>>>>>> as
>>>>>>>> Pointers.... WRONG!
>>>>>>>> Somebody truly had their shit together!
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -----
>>>>>>>> Please reply to the list and not to my personal email.
>>>>>>>> Those desiring my consulting or training services please feel free
>>>>>>>> to
>>>>>>>> email me.
>>>>>>>> ---
>>>>>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>>>>>> porcos
>>>>>>>> ne forte conculcent eas pedibus suis."
>>>>>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum
>>>>>>>> cliff
>>>>>>>> in
>>>>>>>> abyssum?"
>>>>>>>> --
>>>>>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>>>>>
>>>>>>>> SPSSX Discussion | Mailing List
>>>>>>>> Archive&lt;http://spssx-discussion.1045642.n5.nabble.com/&gt;
>>>>>>>> spssx-discussion.1045642.n5.nabble.com
>>>>>>>> This forum is an archive for the mailing list
>>>>>>>
>>>>>>>> spssx-l@.uga
>>>>>>>
>>>>>>>>  (more options) Messages posted here will be sent to this mailing
>>>>>>>> list.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> =====================
>>>>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>>>>
>>>>>>>> LISTSERV@.UGA
>>>>>>>
>>>>>>>>  (not to SPSSX-L), with no body text except the
>>>>>>>> command. To leave the list, send the command
>>>>>>>> SIGNOFF SPSSX-L
>>>>>>>> For a list of commands to manage subscriptions, send the command
>>>>>>>> INFO REFCARD
>>>>>>>>
>>>>>>>>
>>>>>>>> =====================
>>>>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>>>>
>>>>>>>> LISTSERV@.UGA
>>>>>>>
>>>>>>>>  (not to SPSSX-L), with no body text except the
>>>>>>>> command. To leave the list, send the command
>>>>>>>> SIGNOFF SPSSX-L
>>>>>>>> For a list of commands to manage subscriptions, send the command
>>>>>>>> INFO REFCARD
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -----
>>>>>>> Please reply to the list and not to my personal email.
>>>>>>> Those desiring my consulting or training services please feel free
>>>>>>> to
>>>>>>> email me.
>>>>>>> ---
>>>>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>>>>> porcos
>>>>>>> ne forte conculcent eas pedibus suis."
>>>>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum
>>>>>>> cliff
>>>>>>> in
>>>>>>> abyssum?"
>>>>>>> --
>>>>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>>>>
>>>>>>> =====================
>>>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>>>
>>>>>>> LISTSERV@.UGA
>>>>>>
>>>>>>>  (not to SPSSX-L), with no body text except the
>>>>>>> command. To leave the list, send the command
>>>>>>> SIGNOFF SPSSX-L
>>>>>>> For a list of commands to manage subscriptions, send the command
>>>>>>> INFO REFCARD
>>>>>>>
>>>>>>>
>>>>>>> =====================
>>>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>>>
>>>>>>> LISTSERV@.UGA
>>>>>>
>>>>>>>  (not to SPSSX-L), with no body text except the
>>>>>>> command. To leave the list, send the command
>>>>>>> SIGNOFF SPSSX-L
>>>>>>> For a list of commands to manage subscriptions, send the command
>>>>>>> INFO REFCARD
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> -----
>>>>>> Please reply to the list and not to my personal email.
>>>>>> Those desiring my consulting or training services please feel free to
>>>>>> email me.
>>>>>> ---
>>>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>>>> porcos
>>>>>> ne forte conculcent eas pedibus suis."
>>>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum
>>>>>> cliff
>>>>>> in
>>>>>> abyssum?"
>>>>>> --
>>>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>>>
>>>>>> =====================
>>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>>
>>>>>> LISTSERV@.UGA
>>>>>
>>>>>>  (not to SPSSX-L), with no body text except the
>>>>>> command. To leave the list, send the command
>>>>>> SIGNOFF SPSSX-L
>>>>>> For a list of commands to manage subscriptions, send the command
>>>>>> INFO REFCARD
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -----
>>>>> --
>>>>> Bruce Weaver
>>>>
>>>>> bweaver@
>>>>
>>>>> http://sites.google.com/a/lakeheadu.ca/bweaver/
>>>>>
>>>>> "When all else fails, RTFM."
>>>>>
>>>>> NOTE: My Hotmail account is not monitored regularly.
>>>>> To send me an e-mail, please use the address shown above.
>>>>>
>>>>> --
>>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>>
>>>>> =====================
>>>>> To manage your subscription to SPSSX-L, send a message to
>>>>
>>>>> LISTSERV@.UGA
>>>>
>>>>>  (not to SPSSX-L), with no body text except the
>>>>> command. To leave the list, send the command
>>>>> SIGNOFF SPSSX-L
>>>>> For a list of commands to manage subscriptions, send the command
>>>>> INFO REFCARD
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -----
>>>> Please reply to the list and not to my personal email.
>>>> Those desiring my consulting or training services please feel free to
>>>> email me.
>>>> ---
>>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>>>> porcos
>>>> ne forte conculcent eas pedibus suis."
>>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>>>> in
>>>> abyssum?"
>>>> --
>>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>>
>>>> =====================
>>>> To manage your subscription to SPSSX-L, send a message to
>>>
>>>> LISTSERV@.UGA
>>>
>>>>  (not to SPSSX-L), with no body text except the
>>>> command. To leave the list, send the command
>>>> SIGNOFF SPSSX-L
>>>> For a list of commands to manage subscriptions, send the command
>>>> INFO REFCARD
>>>
>>>
>>>
>>>
>>>
>>> -----
>>> --
>>> Bruce Weaver
>>
>>> bweaver@
>>
>>> http://sites.google.com/a/lakeheadu.ca/bweaver/
>>>
>>> "When all else fails, RTFM."
>>>
>>> NOTE: My Hotmail account is not monitored regularly.
>>> To send me an e-mail, please use the address shown above.
>>>
>>> --
>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>
>>> =====================
>>> To manage your subscription to SPSSX-L, send a message to
>>
>>> LISTSERV@.UGA
>>
>>>  (not to SPSSX-L), with no body text except the
>>> command. To leave the list, send the command
>>> SIGNOFF SPSSX-L
>>> For a list of commands to manage subscriptions, send the command
>>> INFO REFCARD
>>
>>
>>
>>
>>
>> -----
>> Please reply to the list and not to my personal email.
>> Those desiring my consulting or training services please feel free to
>> email me.
>> ---
>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>> porcos
>> ne forte conculcent eas pedibus suis."
>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>> in
>> abyssum?"
>> --
>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> --
> Bruce Weaver

> bweaver@

> http://sites.google.com/a/lakeheadu.ca/bweaver/
>
> "When all else fails, RTFM."
>
> NOTE: My Hotmail account is not monitored regularly.
> To send me an e-mail, please use the address shown above.
>
> --
> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"