Converting Fortran to SPSS

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

Converting Fortran to SPSS

bdates

I have a task on which I’m working in matrix mode in SPSS.  The only solution that’s available in publication regarding this task is written in Fortran, with which I’m woefully inadequate.  Does a guide exist which assists in the conversion of Fortran code to SPSS syntax, similar to the guides that are available comparing SPSS to SAS or R?  Thanks.

 

Brian

 

Brian G. Dates

Director of Evaluation and Research

Southwest Counseling Solutions

1700 Waterman

Detroit, MI     48209

313-841-7442

[hidden email]

 

Leading the Way in Building a Healthy Community

 

Reply | Threaded
Open this post in threaded view
|

Re: Converting Fortran to SPSS

David Marso
Administrator
What does it do?
How long is the code?
Are there verifiable test 'data' to confirm whatever might result?
---
No such guide exists to my knowledge.  Pretty much would need to convert line by line.
If it is short and sweet, does something interesting and has verifiable confirmation post it here and I'd be happy to look at it and post suggestions (probably short of actually writing the code).
If it is long and boring I'd consider doing it for a reasonable consulting fee.
I haven't looked at FORTRAN in over 20 years but it's like writing a tricycle.

Dates, Brian wrote
I have a task on which I'm working in matrix mode in SPSS.  The only
solution that's available in publication regarding this task is written
in Fortran, with which I'm woefully inadequate.  Does a guide exist
which assists in the conversion of Fortran code to SPSS syntax, similar
to the guides that are available comparing SPSS to SAS or R?  Thanks.

 

Brian

 

Brian G. Dates

Director of Evaluation and Research

Southwest Counseling Solutions

1700 Waterman

Detroit, MI     48209

313-841-7442

[hidden email]

 

Leading the Way in Building a Healthy Community
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: Converting Fortran to SPSS

Bruce Weaver
Administrator
Here's one more question to add to David's.  You said, "The only solution that’s available in publication regarding this task is written in Fortran".  What task?  


David Marso wrote
What does it do?
How long is the code?
Are there verifiable test 'data' to confirm whatever might result?
---
No such guide exists to my knowledge.  Pretty much would need to convert line by line.
If it is short and sweet, does something interesting and has verifiable confirmation post it here and I'd be happy to look at it and post suggestions (probably short of actually writing the code).
If it is long and boring I'd consider doing it for a reasonable consulting fee.
I haven't looked at FORTRAN in over 20 years but it's like writing a tricycle.

Dates, Brian wrote
I have a task on which I'm working in matrix mode in SPSS.  The only
solution that's available in publication regarding this task is written
in Fortran, with which I'm woefully inadequate.  Does a guide exist
which assists in the conversion of Fortran code to SPSS syntax, similar
to the guides that are available comparing SPSS to SAS or R?  Thanks.

 

Brian

 

Brian G. Dates

Director of Evaluation and Research

Southwest Counseling Solutions

1700 Waterman

Detroit, MI     48209

313-841-7442

[hidden email]

 

Leading the Way in Building a Healthy Community
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: Converting Fortran to SPSS

David Marso
Administrator
That's what I meant by 'what does it do' ;-)
Bruce Weaver wrote
Here's one more question to add to David's.  You said, "The only solution that’s available in publication regarding this task is written in Fortran".  What task?  


David Marso wrote
What does it do?
How long is the code?
Are there verifiable test 'data' to confirm whatever might result?
---
No such guide exists to my knowledge.  Pretty much would need to convert line by line.
If it is short and sweet, does something interesting and has verifiable confirmation post it here and I'd be happy to look at it and post suggestions (probably short of actually writing the code).
If it is long and boring I'd consider doing it for a reasonable consulting fee.
I haven't looked at FORTRAN in over 20 years but it's like writing a tricycle.

Dates, Brian wrote
I have a task on which I'm working in matrix mode in SPSS.  The only
solution that's available in publication regarding this task is written
in Fortran, with which I'm woefully inadequate.  Does a guide exist
which assists in the conversion of Fortran code to SPSS syntax, similar
to the guides that are available comparing SPSS to SAS or R?  Thanks.

 

Brian

 

Brian G. Dates

Director of Evaluation and Research

Southwest Counseling Solutions

1700 Waterman

Detroit, MI     48209

313-841-7442

[hidden email]

 

Leading the Way in Building a Healthy Community
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: Converting Fortran to SPSS

Rich Ulrich
In reply to this post by David Marso
I haven't used Fortran since they still spelled it FORTRAN -
the vector operators are probably transparent; but I
wonder how people use assignment of pointers.  - So, the
version of Fortran might be relevant.

Since the Matrix language has matrix operators, I suggest
that line-by-line is an awkward way to translate old, primitive
Fortran, the stuff that looks mainly like Basis.  Is that what
it is?  Instead, translate the code to algorithms, and program
the algorithms.

--
Rich Ulrich

> Date: Thu, 28 Jun 2012 15:10:33 -0700

> From: [hidden email]
> Subject: Re: Converting Fortran to SPSS
> To: [hidden email]
>
> What does it do?
> How long is the code?
> Are there verifiable test 'data' to confirm whatever might result?
> ---
> No such guide exists to my knowledge. Pretty much would need to convert
> line by line.
> If it is short and sweet, does something interesting and has verifiable
> confirmation post it here and I'd be happy to look at it and post
> suggestions (probably short of actually writing the code).
> If it is long and boring I'd consider doing it for a reasonable consulting
> fee.
> I haven't looked at FORTRAN in over 20 years but it's like writing a
> tricycle.
>
>
> Dates, Brian wrote
> >
> > I have a task on which I'm working in matrix mode in SPSS. The only
> > solution that's available in publication regarding this task is written
> > in Fortran, with which I'm woefully inadequate. Does a guide exist
> > which assists in the conversion of Fortran code to SPSS syntax, similar
> > to the guides that are available comparing SPSS to SAS or R? Thanks.
> >
> >
...
Reply | Threaded
Open this post in threaded view
|

Re: Converting Fortran to SPSS

Bruce Weaver
Administrator
In reply to this post by David Marso
D'oh!  

David Marso wrote
That's what I meant by 'what does it do' ;-)
Bruce Weaver wrote
Here's one more question to add to David's.  You said, "The only solution that’s available in publication regarding this task is written in Fortran".  What task?  


David Marso wrote
What does it do?
How long is the code?
Are there verifiable test 'data' to confirm whatever might result?
---
No such guide exists to my knowledge.  Pretty much would need to convert line by line.
If it is short and sweet, does something interesting and has verifiable confirmation post it here and I'd be happy to look at it and post suggestions (probably short of actually writing the code).
If it is long and boring I'd consider doing it for a reasonable consulting fee.
I haven't looked at FORTRAN in over 20 years but it's like writing a tricycle.

Dates, Brian wrote
I have a task on which I'm working in matrix mode in SPSS.  The only
solution that's available in publication regarding this task is written
in Fortran, with which I'm woefully inadequate.  Does a guide exist
which assists in the conversion of Fortran code to SPSS syntax, similar
to the guides that are available comparing SPSS to SAS or R?  Thanks.

 

Brian

 

Brian G. Dates

Director of Evaluation and Research

Southwest Counseling Solutions

1700 Waterman

Detroit, MI     48209

313-841-7442

[hidden email]

 

Leading the Way in Building a Healthy Community
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: Converting Fortran to SPSS

David Marso
Administrator
In reply to this post by Rich Ulrich
I know you would never think that I would think what would result should be a 'line by line' but a first mental pass would be and 10 lines of FORTRAN would likely end up as a CSUM, MSUM... 50 might be CALL EIGEN...10 SWEEP.... etc (MATRIX doesn't have all that many built in linear algebra functions per se)
Depending upon the level of internal documentation, actual supporting math equations etc it could be a few spins of the Ouija board and a few spent black candles before a blaring epiphany crafts an algorithm.
Of course one must also consider that MATRIX doesn't *directly* support subroutines. OTOH I have clever ways around that.
In summary I agree 'translate the code to algorithms, and program the algorithms.'
OTOH I want to add screw the code!  What is the original algorithm/math and code directly for the jugular!

Rich Ulrich-2 wrote
I haven't used Fortran since they still spelled it FORTRAN -
the vector operators are probably transparent; but I
wonder how people use assignment of pointers.  - So, the
version of Fortran might be relevant.

Since the Matrix language has matrix operators, I suggest
that line-by-line is an awkward way to translate old, primitive
Fortran, the stuff that looks mainly like Basis.  Is that what
it is?  Instead, translate the code to algorithms, and program
the algorithms.

--
Rich Ulrich

> Date: Thu, 28 Jun 2012 15:10:33 -0700
> From: [hidden email]
> Subject: Re: Converting Fortran to SPSS
> To: [hidden email]
>
> What does it do?
> How long is the code?
> Are there verifiable test 'data' to confirm whatever might result?
> ---
> No such guide exists to my knowledge.  Pretty much would need to convert
> line by line.
> If it is short and sweet, does something interesting and has verifiable
> confirmation post it here and I'd be happy to look at it and post
> suggestions (probably short of actually writing the code).
> If it is long and boring I'd consider doing it for a reasonable consulting
> fee.
> I haven't looked at FORTRAN in over 20 years but it's like writing a
> tricycle.
>
>
> Dates, Brian wrote
> >
> > I have a task on which I'm working in matrix mode in SPSS.  The only
> > solution that's available in publication regarding this task is written
> > in Fortran, with which I'm woefully inadequate.  Does a guide exist
> > which assists in the conversion of Fortran code to SPSS syntax, similar
> > to the guides that are available comparing SPSS to SAS or R?  Thanks.
> >
> >
...
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: Converting Fortran to SPSS

Art Kendall
However, until we know what the task is, we don't even know if it can
already be accomplished in SPSS without any MATRIX, macros, (don't look
at this next word David) Python.

As Rich said the OP does not even say what dialect FORTRAN the code is in.
these code snippets on DEC FORTRAN circa 1974 takes a lot more code in
the IBM dialect.

parameter nstim= 20
parameter ncases=210

double precision data (nstim,nstim,ncases)
double precision summary(nstim,nstim)

dimension year (1901/2012)

implicit double precision (a, z)

and in later DEC FORTRAN
real  * 16 anything

the code may also rely on the compile time option of turning on array
index checking so that if an array index is out of bounds an error is
created.
for example a value in the data for year that was 1900 would create an
error message

Art Kendall Social
Research Consultants

On 6/28/2012 10:25 PM, David Marso wrote:

> I know you would never think that I would think what would result should be a
> 'line by line' but a first mental pass would be and 10 lines of FORTRAN
> would likely end up as a CSUM, MSUM... 50 might be CALL EIGEN...10 SWEEP....
> etc (MATRIX doesn't have all that many built in linear algebra functions per
> se)
> Depending upon the level of internal documentation, actual supporting math
> equations etc it could be a few spins of the Ouija board and a few spent
> black candles before a blaring epiphany crafts an algorithm.
> Of course one must also consider that MATRIX doesn't *directly* support
> subroutines. OTOH I have clever ways around that.
> In summary I agree 'translate the code to algorithms, and program the
> algorithms.'
> OTOH I want to add screw the code!  What is the original algorithm/math and
> code directly for the jugular!
>
>
> Rich Ulrich-2 wrote
>> I haven't used Fortran since they still spelled it FORTRAN -
>> the vector operators are probably transparent; but I
>> wonder how people use assignment of pointers.  - So, the
>> version of Fortran might be relevant.
>>
>> Since the Matrix language has matrix operators, I suggest
>> that line-by-line is an awkward way to translate old, primitive
>> Fortran, the stuff that looks mainly like Basis.  Is that what
>> it is?  Instead, translate the code to algorithms, and program
>> the algorithms.
>>
>> --
>> Rich Ulrich
>>
>>> Date: Thu, 28 Jun 2012 15:10:33 -0700
>>> From: david.marso@
>>> Subject: Re: Converting Fortran to SPSS
>>> To: SPSSX-L@.UGA
>>>
>>> What does it do?
>>> How long is the code?
>>> Are there verifiable test 'data' to confirm whatever might result?
>>> ---
>>> No such guide exists to my knowledge.  Pretty much would need to convert
>>> line by line.
>>> If it is short and sweet, does something interesting and has verifiable
>>> confirmation post it here and I'd be happy to look at it and post
>>> suggestions (probably short of actually writing the code).
>>> If it is long and boring I'd consider doing it for a reasonable
>>> consulting
>>> fee.
>>> I haven't looked at FORTRAN in over 20 years but it's like writing a
>>> tricycle.
>>>
>>>
>>> Dates, Brian wrote
>>>> I have a task on which I'm working in matrix mode in SPSS.  The only
>>>> solution that's available in publication regarding this task is written
>>>> in Fortran, with which I'm woefully inadequate.  Does a guide exist
>>>> which assists in the conversion of Fortran code to SPSS syntax, similar
>>>> to the guides that are available comparing SPSS to SAS or R?  Thanks.
>>>>
>>>>
>> ...
>>
>
> --
> View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS-tp5713876p5713883.html
> Sent from the SPSSX Discussion mailing list archive at 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
Art Kendall
Social Research Consultants
Reply | Threaded
Open this post in threaded view
|

Re: Converting Fortran to SPSS

bdates
In reply to this post by David Marso
Thanks for the responses.  The task is the skewness of a Pearson Type
III distribution for Multiresponse Randomized Block Permutation
Procedures (MRBP), so definitely 'long and boring'.  I'll just tough it
out with the formulae I have and try to figure out the Fortran for some
assistance. Thanks again.

Brian





-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
David Marso
Sent: Thursday, June 28, 2012 10:26 PM
To: [hidden email]
Subject: Re: Converting Fortran to SPSS

I know you would never think that I would think what would result should
be a
'line by line' but a first mental pass would be and 10 lines of FORTRAN
would likely end up as a CSUM, MSUM... 50 might be CALL EIGEN...10
SWEEP....
etc (MATRIX doesn't have all that many built in linear algebra functions
per
se)
Depending upon the level of internal documentation, actual supporting
math
equations etc it could be a few spins of the Ouija board and a few spent
black candles before a blaring epiphany crafts an algorithm.
Of course one must also consider that MATRIX doesn't *directly* support
subroutines. OTOH I have clever ways around that.
In summary I agree 'translate the code to algorithms, and program the
algorithms.'
OTOH I want to add screw the code!  What is the original algorithm/math
and
code directly for the jugular!


Rich Ulrich-2 wrote

>
> I haven't used Fortran since they still spelled it FORTRAN -
> the vector operators are probably transparent; but I
> wonder how people use assignment of pointers.  - So, the
> version of Fortran might be relevant.
>
> Since the Matrix language has matrix operators, I suggest
> that line-by-line is an awkward way to translate old, primitive
> Fortran, the stuff that looks mainly like Basis.  Is that what
> it is?  Instead, translate the code to algorithms, and program
> the algorithms.
>
> --
> Rich Ulrich
>
>> Date: Thu, 28 Jun 2012 15:10:33 -0700
>> From: david.marso@
>> Subject: Re: Converting Fortran to SPSS
>> To: SPSSX-L@.UGA
>>
>> What does it do?
>> How long is the code?
>> Are there verifiable test 'data' to confirm whatever might result?
>> ---
>> No such guide exists to my knowledge.  Pretty much would need to
convert
>> line by line.
>> If it is short and sweet, does something interesting and has
verifiable

>> confirmation post it here and I'd be happy to look at it and post
>> suggestions (probably short of actually writing the code).
>> If it is long and boring I'd consider doing it for a reasonable
>> consulting
>> fee.
>> I haven't looked at FORTRAN in over 20 years but it's like writing a
>> tricycle.
>>
>>
>> Dates, Brian wrote
>> >
>> > I have a task on which I'm working in matrix mode in SPSS.  The
only
>> > solution that's available in publication regarding this task is
written
>> > in Fortran, with which I'm woefully inadequate.  Does a guide exist
>> > which assists in the conversion of Fortran code to SPSS syntax,
similar
>> > to the guides that are available comparing SPSS to SAS or R?
Thanks.
>> >
>> >
> ...
>


--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
-tp5713876p5713883.html
Sent from the SPSSX Discussion mailing list archive at 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: Converting Fortran to SPSS

Bruce Weaver
Administrator
Have you come across Li Cai's MRPP macro?  

  http://lcai.bol.ucla.edu/mrpp.txt
  http://lcai.bol.ucla.edu/programs.html
  http://lcai.bol.ucla.edu/mrpp.pdf

HTH.


Dates, Brian wrote
Thanks for the responses.  The task is the skewness of a Pearson Type
III distribution for Multiresponse Randomized Block Permutation
Procedures (MRBP), so definitely 'long and boring'.  I'll just tough it
out with the formulae I have and try to figure out the Fortran for some
assistance. Thanks again.

Brian





-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
David Marso
Sent: Thursday, June 28, 2012 10:26 PM
To: [hidden email]
Subject: Re: Converting Fortran to SPSS

I know you would never think that I would think what would result should
be a
'line by line' but a first mental pass would be and 10 lines of FORTRAN
would likely end up as a CSUM, MSUM... 50 might be CALL EIGEN...10
SWEEP....
etc (MATRIX doesn't have all that many built in linear algebra functions
per
se)
Depending upon the level of internal documentation, actual supporting
math
equations etc it could be a few spins of the Ouija board and a few spent
black candles before a blaring epiphany crafts an algorithm.
Of course one must also consider that MATRIX doesn't *directly* support
subroutines. OTOH I have clever ways around that.
In summary I agree 'translate the code to algorithms, and program the
algorithms.'
OTOH I want to add screw the code!  What is the original algorithm/math
and
code directly for the jugular!


Rich Ulrich-2 wrote
>
> I haven't used Fortran since they still spelled it FORTRAN -
> the vector operators are probably transparent; but I
> wonder how people use assignment of pointers.  - So, the
> version of Fortran might be relevant.
>
> Since the Matrix language has matrix operators, I suggest
> that line-by-line is an awkward way to translate old, primitive
> Fortran, the stuff that looks mainly like Basis.  Is that what
> it is?  Instead, translate the code to algorithms, and program
> the algorithms.
>
> --
> Rich Ulrich
>
>> Date: Thu, 28 Jun 2012 15:10:33 -0700
>> From: david.marso@
>> Subject: Re: Converting Fortran to SPSS
>> To: SPSSX-L@.UGA
>>
>> What does it do?
>> How long is the code?
>> Are there verifiable test 'data' to confirm whatever might result?
>> ---
>> No such guide exists to my knowledge.  Pretty much would need to
convert
>> line by line.
>> If it is short and sweet, does something interesting and has
verifiable
>> confirmation post it here and I'd be happy to look at it and post
>> suggestions (probably short of actually writing the code).
>> If it is long and boring I'd consider doing it for a reasonable
>> consulting
>> fee.
>> I haven't looked at FORTRAN in over 20 years but it's like writing a
>> tricycle.
>>
>>
>> Dates, Brian wrote
>> >
>> > I have a task on which I'm working in matrix mode in SPSS.  The
only
>> > solution that's available in publication regarding this task is
written
>> > in Fortran, with which I'm woefully inadequate.  Does a guide exist
>> > which assists in the conversion of Fortran code to SPSS syntax,
similar
>> > to the guides that are available comparing SPSS to SAS or R?
Thanks.
>> >
>> >
> ...
>


--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
-tp5713876p5713883.html
Sent from the SPSSX Discussion mailing list archive at 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
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: Converting Fortran to SPSS

bdates
Bruce,

Thanks. Yes, I have copies, and it's somewhat helpful, but the blocking
factor changes the way that all of the cumulants are calculated.  The
Fortran code I have is from the Blossom software.  I think between the
two, I can get through it.  I was looking for a time-saver, something
like the "R for SPSS and SAS Users" document.  I'm very rusty on
Fortran.  I really appreciate the suggestion.  When I'm finished I'll
let the list know, or contact Raynald to see if he wants to post it, in
case anyone is interested in the macro.

Brian

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Bruce Weaver
Sent: Friday, June 29, 2012 9:16 AM
To: [hidden email]
Subject: Re: Converting Fortran to SPSS

Have you come across Li Cai's MRPP macro?

  http://lcai.bol.ucla.edu/mrpp.txt
  http://lcai.bol.ucla.edu/programs.html
  http://lcai.bol.ucla.edu/mrpp.pdf

HTH.



Dates, Brian wrote
>
> Thanks for the responses.  The task is the skewness of a Pearson Type
> III distribution for Multiresponse Randomized Block Permutation
> Procedures (MRBP), so definitely 'long and boring'.  I'll just tough
it
> out with the formulae I have and try to figure out the Fortran for
some

> assistance. Thanks again.
>
> Brian
>
>
>
>
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] On Behalf Of
> David Marso
> Sent: Thursday, June 28, 2012 10:26 PM
> To: SPSSX-L@.UGA
> Subject: Re: Converting Fortran to SPSS
>
> I know you would never think that I would think what would result
should
> be a
> 'line by line' but a first mental pass would be and 10 lines of
FORTRAN
> would likely end up as a CSUM, MSUM... 50 might be CALL EIGEN...10
> SWEEP....
> etc (MATRIX doesn't have all that many built in linear algebra
functions
> per
> se)
> Depending upon the level of internal documentation, actual supporting
> math
> equations etc it could be a few spins of the Ouija board and a few
spent
> black candles before a blaring epiphany crafts an algorithm.
> Of course one must also consider that MATRIX doesn't *directly*
support
> subroutines. OTOH I have clever ways around that.
> In summary I agree 'translate the code to algorithms, and program the
> algorithms.'
> OTOH I want to add screw the code!  What is the original
algorithm/math

> and
> code directly for the jugular!
>
>
> Rich Ulrich-2 wrote
>>
>> I haven't used Fortran since they still spelled it FORTRAN -
>> the vector operators are probably transparent; but I
>> wonder how people use assignment of pointers.  - So, the
>> version of Fortran might be relevant.
>>
>> Since the Matrix language has matrix operators, I suggest
>> that line-by-line is an awkward way to translate old, primitive
>> Fortran, the stuff that looks mainly like Basis.  Is that what
>> it is?  Instead, translate the code to algorithms, and program
>> the algorithms.
>>
>> --
>> Rich Ulrich
>>
>>> Date: Thu, 28 Jun 2012 15:10:33 -0700
>>> From: david.marso@
>>> Subject: Re: Converting Fortran to SPSS
>>> To: SPSSX-L@.UGA
>>>
>>> What does it do?
>>> How long is the code?
>>> Are there verifiable test 'data' to confirm whatever might result?
>>> ---
>>> No such guide exists to my knowledge.  Pretty much would need to
> convert
>>> line by line.
>>> If it is short and sweet, does something interesting and has
> verifiable
>>> confirmation post it here and I'd be happy to look at it and post
>>> suggestions (probably short of actually writing the code).
>>> If it is long and boring I'd consider doing it for a reasonable
>>> consulting
>>> fee.
>>> I haven't looked at FORTRAN in over 20 years but it's like writing a
>>> tricycle.
>>>
>>>
>>> Dates, Brian wrote
>>> >
>>> > I have a task on which I'm working in matrix mode in SPSS.  The
> only
>>> > solution that's available in publication regarding this task is
> written
>>> > in Fortran, with which I'm woefully inadequate.  Does a guide
exist

>>> > which assists in the conversion of Fortran code to SPSS syntax,
> similar
>>> > to the guides that are available comparing SPSS to SAS or R?
> Thanks.
>>> >
>>> >
>> ...
>>
>
>
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS

> -tp5713876p5713883.html
> Sent from the SPSSX Discussion mailing list archive at 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
>


-----
--
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.

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
-tp5713876p5713891.html
Sent from the SPSSX Discussion mailing list archive at 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: Converting Fortran to SPSS

Zuluaga, Juan
In reply to this post by bdates
LISTSERV at the University of Georgia

I would run Fortran code as a call from R. No need to translate it, only some tweaking needed. You do need to understand what the Fortran code does.

 

Reply | Threaded
Open this post in threaded view
|

Re: Converting Fortran to SPSS

David Marso
Administrator
In reply to this post by bdates
FWIW:  I located Blossom software : http://www.fort.usgs.gov/Products/Software/blossom/
where would one find a link for the source code?
Dates, Brian wrote
Bruce,

Thanks. Yes, I have copies, and it's somewhat helpful, but the blocking
factor changes the way that all of the cumulants are calculated.  The
Fortran code I have is from the Blossom software.  I think between the
two, I can get through it.  I was looking for a time-saver, something
like the "R for SPSS and SAS Users" document.  I'm very rusty on
Fortran.  I really appreciate the suggestion.  When I'm finished I'll
let the list know, or contact Raynald to see if he wants to post it, in
case anyone is interested in the macro.

Brian

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Bruce Weaver
Sent: Friday, June 29, 2012 9:16 AM
To: [hidden email]
Subject: Re: Converting Fortran to SPSS

Have you come across Li Cai's MRPP macro?

  http://lcai.bol.ucla.edu/mrpp.txt
  http://lcai.bol.ucla.edu/programs.html
  http://lcai.bol.ucla.edu/mrpp.pdf

HTH.



Dates, Brian wrote
>
> Thanks for the responses.  The task is the skewness of a Pearson Type
> III distribution for Multiresponse Randomized Block Permutation
> Procedures (MRBP), so definitely 'long and boring'.  I'll just tough
it
> out with the formulae I have and try to figure out the Fortran for
some
> assistance. Thanks again.
>
> Brian
>
>
>
>
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] On Behalf Of
> David Marso
> Sent: Thursday, June 28, 2012 10:26 PM
> To: SPSSX-L@.UGA
> Subject: Re: Converting Fortran to SPSS
>
> I know you would never think that I would think what would result
should
> be a
> 'line by line' but a first mental pass would be and 10 lines of
FORTRAN
> would likely end up as a CSUM, MSUM... 50 might be CALL EIGEN...10
> SWEEP....
> etc (MATRIX doesn't have all that many built in linear algebra
functions
> per
> se)
> Depending upon the level of internal documentation, actual supporting
> math
> equations etc it could be a few spins of the Ouija board and a few
spent
> black candles before a blaring epiphany crafts an algorithm.
> Of course one must also consider that MATRIX doesn't *directly*
support
> subroutines. OTOH I have clever ways around that.
> In summary I agree 'translate the code to algorithms, and program the
> algorithms.'
> OTOH I want to add screw the code!  What is the original
algorithm/math
> and
> code directly for the jugular!
>
>
> Rich Ulrich-2 wrote
>>
>> I haven't used Fortran since they still spelled it FORTRAN -
>> the vector operators are probably transparent; but I
>> wonder how people use assignment of pointers.  - So, the
>> version of Fortran might be relevant.
>>
>> Since the Matrix language has matrix operators, I suggest
>> that line-by-line is an awkward way to translate old, primitive
>> Fortran, the stuff that looks mainly like Basis.  Is that what
>> it is?  Instead, translate the code to algorithms, and program
>> the algorithms.
>>
>> --
>> Rich Ulrich
>>
>>> Date: Thu, 28 Jun 2012 15:10:33 -0700
>>> From: david.marso@
>>> Subject: Re: Converting Fortran to SPSS
>>> To: SPSSX-L@.UGA
>>>
>>> What does it do?
>>> How long is the code?
>>> Are there verifiable test 'data' to confirm whatever might result?
>>> ---
>>> No such guide exists to my knowledge.  Pretty much would need to
> convert
>>> line by line.
>>> If it is short and sweet, does something interesting and has
> verifiable
>>> confirmation post it here and I'd be happy to look at it and post
>>> suggestions (probably short of actually writing the code).
>>> If it is long and boring I'd consider doing it for a reasonable
>>> consulting
>>> fee.
>>> I haven't looked at FORTRAN in over 20 years but it's like writing a
>>> tricycle.
>>>
>>>
>>> Dates, Brian wrote
>>> >
>>> > I have a task on which I'm working in matrix mode in SPSS.  The
> only
>>> > solution that's available in publication regarding this task is
> written
>>> > in Fortran, with which I'm woefully inadequate.  Does a guide
exist
>>> > which assists in the conversion of Fortran code to SPSS syntax,
> similar
>>> > to the guides that are available comparing SPSS to SAS or R?
> Thanks.
>>> >
>>> >
>> ...
>>
>
>
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
> -tp5713876p5713883.html
> Sent from the SPSSX Discussion mailing list archive at 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
>


-----
--
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.

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
-tp5713876p5713891.html
Sent from the SPSSX Discussion mailing list archive at 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
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: Converting Fortran to SPSS

bdates
David,

The source of this information is John Pezzullo's website of free
statistical software: http://statpages.org/javasta2.html . In the first
section on the left, the next to last entry is titled Statistical
Software by Paul W. Mielke Jr. The address for the software is
http://www.stat.colostate.edu/~mielke/permute.html (so you can skip
going to Johns' site). On the webpage, I used the dos/win link.  MRBP is
in the resulting PRGMS2 folder.

Brian

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
David Marso
Sent: Friday, June 29, 2012 11:57 AM
To: [hidden email]
Subject: Re: Converting Fortran to SPSS

FWIW:  I located Blossom software :
http://www.fort.usgs.gov/Products/Software/blossom/
where would one find a link for the source code?

Dates, Brian wrote
>
> Bruce,
>
> Thanks. Yes, I have copies, and it's somewhat helpful, but the
blocking
> factor changes the way that all of the cumulants are calculated.  The
> Fortran code I have is from the Blossom software.  I think between the
> two, I can get through it.  I was looking for a time-saver, something
> like the "R for SPSS and SAS Users" document.  I'm very rusty on
> Fortran.  I really appreciate the suggestion.  When I'm finished I'll
> let the list know, or contact Raynald to see if he wants to post it,
in

> case anyone is interested in the macro.
>
> Brian
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] On Behalf Of
> Bruce Weaver
> Sent: Friday, June 29, 2012 9:16 AM
> To: SPSSX-L@.UGA
> Subject: Re: Converting Fortran to SPSS
>
> Have you come across Li Cai's MRPP macro?
>
>   http://lcai.bol.ucla.edu/mrpp.txt
>   http://lcai.bol.ucla.edu/programs.html
>   http://lcai.bol.ucla.edu/mrpp.pdf
>
> HTH.
>
>
>
> Dates, Brian wrote
>>
>> Thanks for the responses.  The task is the skewness of a Pearson Type
>> III distribution for Multiresponse Randomized Block Permutation
>> Procedures (MRBP), so definitely 'long and boring'.  I'll just tough
> it
>> out with the formulae I have and try to figure out the Fortran for
> some
>> assistance. Thanks again.
>>
>> Brian
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] On Behalf Of
>> David Marso
>> Sent: Thursday, June 28, 2012 10:26 PM
>> To: SPSSX-L@.UGA
>> Subject: Re: Converting Fortran to SPSS
>>
>> I know you would never think that I would think what would result
> should
>> be a
>> 'line by line' but a first mental pass would be and 10 lines of
> FORTRAN
>> would likely end up as a CSUM, MSUM... 50 might be CALL EIGEN...10
>> SWEEP....
>> etc (MATRIX doesn't have all that many built in linear algebra
> functions
>> per
>> se)
>> Depending upon the level of internal documentation, actual supporting
>> math
>> equations etc it could be a few spins of the Ouija board and a few
> spent
>> black candles before a blaring epiphany crafts an algorithm.
>> Of course one must also consider that MATRIX doesn't *directly*
> support
>> subroutines. OTOH I have clever ways around that.
>> In summary I agree 'translate the code to algorithms, and program the
>> algorithms.'
>> OTOH I want to add screw the code!  What is the original
> algorithm/math
>> and
>> code directly for the jugular!
>>
>>
>> Rich Ulrich-2 wrote
>>>
>>> I haven't used Fortran since they still spelled it FORTRAN -
>>> the vector operators are probably transparent; but I
>>> wonder how people use assignment of pointers.  - So, the
>>> version of Fortran might be relevant.
>>>
>>> Since the Matrix language has matrix operators, I suggest
>>> that line-by-line is an awkward way to translate old, primitive
>>> Fortran, the stuff that looks mainly like Basis.  Is that what
>>> it is?  Instead, translate the code to algorithms, and program
>>> the algorithms.
>>>
>>> --
>>> Rich Ulrich
>>>
>>>> Date: Thu, 28 Jun 2012 15:10:33 -0700
>>>> From: david.marso@
>>>> Subject: Re: Converting Fortran to SPSS
>>>> To: SPSSX-L@.UGA
>>>>
>>>> What does it do?
>>>> How long is the code?
>>>> Are there verifiable test 'data' to confirm whatever might result?
>>>> ---
>>>> No such guide exists to my knowledge.  Pretty much would need to
>> convert
>>>> line by line.
>>>> If it is short and sweet, does something interesting and has
>> verifiable
>>>> confirmation post it here and I'd be happy to look at it and post
>>>> suggestions (probably short of actually writing the code).
>>>> If it is long and boring I'd consider doing it for a reasonable
>>>> consulting
>>>> fee.
>>>> I haven't looked at FORTRAN in over 20 years but it's like writing
a

>>>> tricycle.
>>>>
>>>>
>>>> Dates, Brian wrote
>>>> >
>>>> > I have a task on which I'm working in matrix mode in SPSS.  The
>> only
>>>> > solution that's available in publication regarding this task is
>> written
>>>> > in Fortran, with which I'm woefully inadequate.  Does a guide
> exist
>>>> > which assists in the conversion of Fortran code to SPSS syntax,
>> similar
>>>> > to the guides that are available comparing SPSS to SAS or R?
>> Thanks.
>>>> >
>>>> >
>>> ...
>>>
>>
>>
>> --
>> View this message in context:
>>
>
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS

>> -tp5713876p5713883.html
>> Sent from the SPSSX Discussion mailing list archive at 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
>>
>
>
> -----
> --
> 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.
>
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS

> -tp5713876p5713891.html
> Sent from the SPSSX Discussion mailing list archive at 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
>


--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
-tp5713876p5713903.html
Sent from the SPSSX Discussion mailing list archive at 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: Converting Fortran to SPSS

David Marso
Administrator
Thanks Brian,
I downloaded the source and scanned through it without going blond.
All in all it looks fairly straightforward with a single caveat.
The *entire* bloody thing uses 3 dimensional arrays.
SPSS MATRIX only understands 2 dimensions so you will need to carefully redesign it and decide how best to factor out the additional dimension.  One can easily map 2 dimensional array to one dimension and indeed 3->2 or 3-> 1 but I guarantee such an approach will impact performance.

1 2
3 4
5 6
--> 1 2 3 4 5 6
(i-1)*NJ + j
(NJ=2 in this case -number of columns).

--HTH--
Dates, Brian wrote
David,

The source of this information is John Pezzullo's website of free
statistical software: http://statpages.org/javasta2.html . In the first
section on the left, the next to last entry is titled Statistical
Software by Paul W. Mielke Jr. The address for the software is
http://www.stat.colostate.edu/~mielke/permute.html (so you can skip
going to Johns' site). On the webpage, I used the dos/win link.  MRBP is
in the resulting PRGMS2 folder.

Brian

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
David Marso
Sent: Friday, June 29, 2012 11:57 AM
To: [hidden email]
Subject: Re: Converting Fortran to SPSS

FWIW:  I located Blossom software :
http://www.fort.usgs.gov/Products/Software/blossom/
where would one find a link for the source code?

Dates, Brian wrote
>
> Bruce,
>
> Thanks. Yes, I have copies, and it's somewhat helpful, but the
blocking
> factor changes the way that all of the cumulants are calculated.  The
> Fortran code I have is from the Blossom software.  I think between the
> two, I can get through it.  I was looking for a time-saver, something
> like the "R for SPSS and SAS Users" document.  I'm very rusty on
> Fortran.  I really appreciate the suggestion.  When I'm finished I'll
> let the list know, or contact Raynald to see if he wants to post it,
in
> case anyone is interested in the macro.
>
> Brian
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] On Behalf Of
> Bruce Weaver
> Sent: Friday, June 29, 2012 9:16 AM
> To: SPSSX-L@.UGA
> Subject: Re: Converting Fortran to SPSS
>
> Have you come across Li Cai's MRPP macro?
>
>   http://lcai.bol.ucla.edu/mrpp.txt
>   http://lcai.bol.ucla.edu/programs.html
>   http://lcai.bol.ucla.edu/mrpp.pdf
>
> HTH.
>
>
>
> Dates, Brian wrote
>>
>> Thanks for the responses.  The task is the skewness of a Pearson Type
>> III distribution for Multiresponse Randomized Block Permutation
>> Procedures (MRBP), so definitely 'long and boring'.  I'll just tough
> it
>> out with the formulae I have and try to figure out the Fortran for
> some
>> assistance. Thanks again.
>>
>> Brian
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] On Behalf Of
>> David Marso
>> Sent: Thursday, June 28, 2012 10:26 PM
>> To: SPSSX-L@.UGA
>> Subject: Re: Converting Fortran to SPSS
>>
>> I know you would never think that I would think what would result
> should
>> be a
>> 'line by line' but a first mental pass would be and 10 lines of
> FORTRAN
>> would likely end up as a CSUM, MSUM... 50 might be CALL EIGEN...10
>> SWEEP....
>> etc (MATRIX doesn't have all that many built in linear algebra
> functions
>> per
>> se)
>> Depending upon the level of internal documentation, actual supporting
>> math
>> equations etc it could be a few spins of the Ouija board and a few
> spent
>> black candles before a blaring epiphany crafts an algorithm.
>> Of course one must also consider that MATRIX doesn't *directly*
> support
>> subroutines. OTOH I have clever ways around that.
>> In summary I agree 'translate the code to algorithms, and program the
>> algorithms.'
>> OTOH I want to add screw the code!  What is the original
> algorithm/math
>> and
>> code directly for the jugular!
>>
>>
>> Rich Ulrich-2 wrote
>>>
>>> I haven't used Fortran since they still spelled it FORTRAN -
>>> the vector operators are probably transparent; but I
>>> wonder how people use assignment of pointers.  - So, the
>>> version of Fortran might be relevant.
>>>
>>> Since the Matrix language has matrix operators, I suggest
>>> that line-by-line is an awkward way to translate old, primitive
>>> Fortran, the stuff that looks mainly like Basis.  Is that what
>>> it is?  Instead, translate the code to algorithms, and program
>>> the algorithms.
>>>
>>> --
>>> Rich Ulrich
>>>
>>>> Date: Thu, 28 Jun 2012 15:10:33 -0700
>>>> From: david.marso@
>>>> Subject: Re: Converting Fortran to SPSS
>>>> To: SPSSX-L@.UGA
>>>>
>>>> What does it do?
>>>> How long is the code?
>>>> Are there verifiable test 'data' to confirm whatever might result?
>>>> ---
>>>> No such guide exists to my knowledge.  Pretty much would need to
>> convert
>>>> line by line.
>>>> If it is short and sweet, does something interesting and has
>> verifiable
>>>> confirmation post it here and I'd be happy to look at it and post
>>>> suggestions (probably short of actually writing the code).
>>>> If it is long and boring I'd consider doing it for a reasonable
>>>> consulting
>>>> fee.
>>>> I haven't looked at FORTRAN in over 20 years but it's like writing
a
>>>> tricycle.
>>>>
>>>>
>>>> Dates, Brian wrote
>>>> >
>>>> > I have a task on which I'm working in matrix mode in SPSS.  The
>> only
>>>> > solution that's available in publication regarding this task is
>> written
>>>> > in Fortran, with which I'm woefully inadequate.  Does a guide
> exist
>>>> > which assists in the conversion of Fortran code to SPSS syntax,
>> similar
>>>> > to the guides that are available comparing SPSS to SAS or R?
>> Thanks.
>>>> >
>>>> >
>>> ...
>>>
>>
>>
>> --
>> View this message in context:
>>
>
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
>> -tp5713876p5713883.html
>> Sent from the SPSSX Discussion mailing list archive at 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
>>
>
>
> -----
> --
> 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.
>
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
> -tp5713876p5713891.html
> Sent from the SPSSX Discussion mailing list archive at 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
>


--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
-tp5713876p5713903.html
Sent from the SPSSX Discussion mailing list archive at 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
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: Converting Fortran to SPSS

bdates
David,

You're welcome...and thank-you!!!  I'll be more specific next time. I
appreciate all the time you've spent on this.  Take care and have a nice
weekend.

Brian

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
David Marso
Sent: Friday, June 29, 2012 2:04 PM
To: [hidden email]
Subject: Re: Converting Fortran to SPSS

Thanks Brian,
I downloaded the source and scanned through it without going blond.
All in all it looks fairly straightforward with a single caveat.
The *entire* bloody thing uses 3 dimensional arrays.
SPSS MATRIX only understands 2 dimensions so you will need to carefully
redesign it and decide how best to factor out the additional dimension.
One
can easily map 2 dimensional array to one dimension and indeed 3->2 or
3-> 1
but I guarantee such an approach will impact performance.

1 2
3 4
5 6
--> 1 2 3 4 5 6
(i-1)*NJ + j
(NJ=2 in this case -number of columns).

--HTH--

Dates, Brian wrote
>
> David,
>
> The source of this information is John Pezzullo's website of free
> statistical software: http://statpages.org/javasta2.html . In the
first
> section on the left, the next to last entry is titled Statistical
> Software by Paul W. Mielke Jr. The address for the software is
> http://www.stat.colostate.edu/~mielke/permute.html (so you can skip
> going to Johns' site). On the webpage, I used the dos/win link.  MRBP
is

> in the resulting PRGMS2 folder.
>
> Brian
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] On Behalf Of
> David Marso
> Sent: Friday, June 29, 2012 11:57 AM
> To: SPSSX-L@.UGA
> Subject: Re: Converting Fortran to SPSS
>
> FWIW:  I located Blossom software :
> http://www.fort.usgs.gov/Products/Software/blossom/
> where would one find a link for the source code?
>
> Dates, Brian wrote
>>
>> Bruce,
>>
>> Thanks. Yes, I have copies, and it's somewhat helpful, but the
> blocking
>> factor changes the way that all of the cumulants are calculated.  The
>> Fortran code I have is from the Blossom software.  I think between
the

>> two, I can get through it.  I was looking for a time-saver, something
>> like the "R for SPSS and SAS Users" document.  I'm very rusty on
>> Fortran.  I really appreciate the suggestion.  When I'm finished I'll
>> let the list know, or contact Raynald to see if he wants to post it,
> in
>> case anyone is interested in the macro.
>>
>> Brian
>>
>> -----Original Message-----
>> From: SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] On Behalf Of
>> Bruce Weaver
>> Sent: Friday, June 29, 2012 9:16 AM
>> To: SPSSX-L@.UGA
>> Subject: Re: Converting Fortran to SPSS
>>
>> Have you come across Li Cai's MRPP macro?
>>
>>   http://lcai.bol.ucla.edu/mrpp.txt
>>   http://lcai.bol.ucla.edu/programs.html
>>   http://lcai.bol.ucla.edu/mrpp.pdf
>>
>> HTH.
>>
>>
>>
>> Dates, Brian wrote
>>>
>>> Thanks for the responses.  The task is the skewness of a Pearson
Type

>>> III distribution for Multiresponse Randomized Block Permutation
>>> Procedures (MRBP), so definitely 'long and boring'.  I'll just tough
>> it
>>> out with the formulae I have and try to figure out the Fortran for
>> some
>>> assistance. Thanks again.
>>>
>>> Brian
>>>
>>>
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] On Behalf Of
>>> David Marso
>>> Sent: Thursday, June 28, 2012 10:26 PM
>>> To: SPSSX-L@.UGA
>>> Subject: Re: Converting Fortran to SPSS
>>>
>>> I know you would never think that I would think what would result
>> should
>>> be a
>>> 'line by line' but a first mental pass would be and 10 lines of
>> FORTRAN
>>> would likely end up as a CSUM, MSUM... 50 might be CALL EIGEN...10
>>> SWEEP....
>>> etc (MATRIX doesn't have all that many built in linear algebra
>> functions
>>> per
>>> se)
>>> Depending upon the level of internal documentation, actual
supporting
>>> math
>>> equations etc it could be a few spins of the Ouija board and a few
>> spent
>>> black candles before a blaring epiphany crafts an algorithm.
>>> Of course one must also consider that MATRIX doesn't *directly*
>> support
>>> subroutines. OTOH I have clever ways around that.
>>> In summary I agree 'translate the code to algorithms, and program
the

>>> algorithms.'
>>> OTOH I want to add screw the code!  What is the original
>> algorithm/math
>>> and
>>> code directly for the jugular!
>>>
>>>
>>> Rich Ulrich-2 wrote
>>>>
>>>> I haven't used Fortran since they still spelled it FORTRAN -
>>>> the vector operators are probably transparent; but I
>>>> wonder how people use assignment of pointers.  - So, the
>>>> version of Fortran might be relevant.
>>>>
>>>> Since the Matrix language has matrix operators, I suggest
>>>> that line-by-line is an awkward way to translate old, primitive
>>>> Fortran, the stuff that looks mainly like Basis.  Is that what
>>>> it is?  Instead, translate the code to algorithms, and program
>>>> the algorithms.
>>>>
>>>> --
>>>> Rich Ulrich
>>>>
>>>>> Date: Thu, 28 Jun 2012 15:10:33 -0700
>>>>> From: david.marso@
>>>>> Subject: Re: Converting Fortran to SPSS
>>>>> To: SPSSX-L@.UGA
>>>>>
>>>>> What does it do?
>>>>> How long is the code?
>>>>> Are there verifiable test 'data' to confirm whatever might result?
>>>>> ---
>>>>> No such guide exists to my knowledge.  Pretty much would need to
>>> convert
>>>>> line by line.
>>>>> If it is short and sweet, does something interesting and has
>>> verifiable
>>>>> confirmation post it here and I'd be happy to look at it and post
>>>>> suggestions (probably short of actually writing the code).
>>>>> If it is long and boring I'd consider doing it for a reasonable
>>>>> consulting
>>>>> fee.
>>>>> I haven't looked at FORTRAN in over 20 years but it's like writing
> a
>>>>> tricycle.
>>>>>
>>>>>
>>>>> Dates, Brian wrote
>>>>> >
>>>>> > I have a task on which I'm working in matrix mode in SPSS.  The
>>> only
>>>>> > solution that's available in publication regarding this task is
>>> written
>>>>> > in Fortran, with which I'm woefully inadequate.  Does a guide
>> exist
>>>>> > which assists in the conversion of Fortran code to SPSS syntax,
>>> similar
>>>>> > to the guides that are available comparing SPSS to SAS or R?
>>> Thanks.
>>>>> >
>>>>> >
>>>> ...
>>>>
>>>
>>>
>>> --
>>> View this message in context:
>>>
>>
>
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS

>>> -tp5713876p5713883.html
>>> Sent from the SPSSX Discussion mailing list archive at 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
>>>
>>
>>
>> -----
>> --
>> 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.
>>
>> --
>> View this message in context:
>>
>
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS

>> -tp5713876p5713891.html
>> Sent from the SPSSX Discussion mailing list archive at 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
>>
>
>
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS

> -tp5713876p5713903.html
> Sent from the SPSSX Discussion mailing list archive at 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
>


--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
-tp5713876p5713910.html
Sent from the SPSSX Discussion mailing list archive at 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: Converting Fortran to SPSS

David Marso
Administrator
Brian,
After more careful scrutiny of the source you directed our attention and burrowing into distant memories the following will be useful.
Copy Paste the whole shebang into an editor.

Globally replace DO with LOOP.
Globally replace IF with DO IF.
Globally replace ZERO with 0.0 .
Globally replace logical compares .LT. with ' LT ' without apostrophes same with .GT. -> GT, .EQ. -> EQ , .LE., .GE. .

Globally replace -being careful not to clobber indexed values in arrays:
1, -> 1 TO
Prefix ALL assignment statements with COMPUTE.
Figure out a way to disentangle the hippity hop skippado GOTO business.
Replace various FORTRAN functions DABS DSQRT -> ABS, SQRT
E() function -> EXP
etc......
Finally and *GOOD LUCK*.
unfold the 3D data structures into 2D and figure out VECTOR methods for some of the more brutally intense inner loops.
Figure out exactly WTF the thing is trying to achieve and see if there is an algorithm which drops from the sky.
Test with some known data sets against Blossom and hope like hell you can get it to work ;-)
Contrary to what Rich suggested, At this point it looks like much of this will be a line by line translation with a few vector shortcuts if you can figure out a clean way of unfolding the data structure and extract the relevant vectors.
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: Converting Fortran to SPSS

bdates
David,

Thank-you very much for your time and energy!  You've gone way beyond
what I expected. I really appreciate it and will persevere.  Take care.

Brian

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
David Marso
Sent: Monday, July 02, 2012 10:26 AM
To: [hidden email]
Subject: Re: Converting Fortran to SPSS

Brian,
After more careful scrutiny of the source you directed our attention and
burrowing into distant memories the following will be useful.
Copy Paste the whole shebang into an editor.

Globally replace DO with LOOP.
Globally replace IF with DO IF.
Globally replace ZERO with 0.0 .
Globally replace logical compares .LT. with ' LT ' without apostrophes
same
with .GT. -> GT, .EQ. -> EQ , .LE., .GE. .

Globally replace -being careful not to clobber indexed values in arrays:
1, -> 1 TO
Prefix ALL assignment statements with COMPUTE.
Figure out a way to disentangle the hippity hop skippado GOTO business.
Replace various FORTRAN functions DABS DSQRT -> ABS, SQRT
E() function -> EXP
etc......
Finally and *GOOD LUCK*.
unfold the 3D data structures into 2D and figure out VECTOR methods for
some
of the more brutally intense inner loops.
Figure out exactly WTF the thing is trying to achieve and see if there
is an
algorithm which drops from the sky.
Test with some known data sets against Blossom and hope like hell you
can
get it to work ;-)
Contrary to what Rich suggested, At this point it looks like much of
this
will be a line by line translation with a few vector shortcuts if you
can
figure out a clean way of unfolding the data structure and extract the
relevant vectors.

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
-tp5713876p5713945.html
Sent from the SPSSX Discussion mailing list archive at 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: Converting Fortran to SPSS - Email found in subject

bdates

Art,

 

Yes.  Li Cai’s syntax is helpful, although there are some pretty substantial differences between MRPP and MRBP.  I’m actually stepping through that and the fortran code at the same time.  I’ve been successful at computing the first two cumulants that agree with published values, but the skewness requires significantly more work, so having both the MRPP syntax and the MRBP fortran code is helpful.  I think that I will wind up tweaking what Li Cai has done.  Thanks!

 

Brian

 


From: Art Kendall [mailto:[hidden email]]
Sent: Monday, July 02, 2012 12:03 PM
To: Dates, Brian
Cc: [hidden email]
Subject: Re: [SPSSX-L] Converting Fortran to SPSS - Email found in subject

 

Did the syntax at the links Bruce posted meet your needs? 
if not exactly might you be better off tweaking that rather than starting from scratch?



Art Kendall
Social Research Consultants

On 7/2/2012 10:50 AM, Dates, Brian wrote:

David,
 
Thank-you very much for your time and energy!  You've gone way beyond
what I expected. I really appreciate it and will persevere.  Take care.
 
Brian
 
-----Original Message-----
From: SPSSX(r) Discussion [[hidden email]] On Behalf Of
David Marso
Sent: Monday, July 02, 2012 10:26 AM
To: [hidden email]
Subject: Re: Converting Fortran to SPSS
 
Brian,
After more careful scrutiny of the source you directed our attention and
burrowing into distant memories the following will be useful.
Copy Paste the whole shebang into an editor.
 
Globally replace DO with LOOP.
Globally replace IF with DO IF.
Globally replace ZERO with 0.0 .
Globally replace logical compares .LT. with ' LT ' without apostrophes
same
with .GT. -> GT, .EQ. -> EQ , .LE., .GE. .
 
Globally replace -being careful not to clobber indexed values in arrays:
1, -> 1 TO
Prefix ALL assignment statements with COMPUTE.
Figure out a way to disentangle the hippity hop skippado GOTO business.
Replace various FORTRAN functions DABS DSQRT -> ABS, SQRT
E() function -> EXP
etc......
Finally and *GOOD LUCK*.
unfold the 3D data structures into 2D and figure out VECTOR methods for
some
of the more brutally intense inner loops.
Figure out exactly WTF the thing is trying to achieve and see if there
is an
algorithm which drops from the sky.
Test with some known data sets against Blossom and hope like hell you
can
get it to work ;-)
Contrary to what Rich suggested, At this point it looks like much of
this
will be a line by line translation with a few vector shortcuts if you
can
figure out a clean way of unfolding the data structure and extract the
relevant vectors.
 
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
-tp5713876p5713945.html
Sent from the SPSSX Discussion mailing list archive at 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: Converting Fortran to SPSS

David Marso
Administrator
In reply to this post by bdates
Glad to be of assistance.  I only spent about 1/2 hr or so (my mind works in mysterious ways ).
One last: CONTINUE can be replaced with END LOOP.
Be careful of IF () THEN and the scope of the conditional .
GOTO bites!  It will be fun to thread your way around all that jumping about.
I caution you that staring at that code for too long might result in irreversible Bramage.
If I were doing this I would locate a compatible FORTRAN compiler and modify the source to print intermediate results in strategic places. That will provide reality checks at various points along the way.
Barring that you might complete the project and one tiny intractable bug will drive you nuts for weeks.
I hope you have strong mastery of the MATRIX language, that will definitely be of benefit.
Dates, Brian wrote
David,

Thank-you very much for your time and energy!  You've gone way beyond
what I expected. I really appreciate it and will persevere.  Take care.

Brian

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
David Marso
Sent: Monday, July 02, 2012 10:26 AM
To: [hidden email]
Subject: Re: Converting Fortran to SPSS

Brian,
After more careful scrutiny of the source you directed our attention and
burrowing into distant memories the following will be useful.
Copy Paste the whole shebang into an editor.

Globally replace DO with LOOP.
Globally replace IF with DO IF.
Globally replace ZERO with 0.0 .
Globally replace logical compares .LT. with ' LT ' without apostrophes
same
with .GT. -> GT, .EQ. -> EQ , .LE., .GE. .

Globally replace -being careful not to clobber indexed values in arrays:
1, -> 1 TO
Prefix ALL assignment statements with COMPUTE.
Figure out a way to disentangle the hippity hop skippado GOTO business.
Replace various FORTRAN functions DABS DSQRT -> ABS, SQRT
E() function -> EXP
etc......
Finally and *GOOD LUCK*.
unfold the 3D data structures into 2D and figure out VECTOR methods for
some
of the more brutally intense inner loops.
Figure out exactly WTF the thing is trying to achieve and see if there
is an
algorithm which drops from the sky.
Test with some known data sets against Blossom and hope like hell you
can
get it to work ;-)
Contrary to what Rich suggested, At this point it looks like much of
this
will be a line by line translation with a few vector shortcuts if you
can
figure out a clean way of unfolding the data structure and extract the
relevant vectors.

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Converting-Fortran-to-SPSS
-tp5713876p5713945.html
Sent from the SPSSX Discussion mailing list archive at 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
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?"
12