Suppressing default output from Regressions

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

Suppressing default output from Regressions

Dede Williams
Hello.  

 

I'm trying to run a logistic regression for many models from which I
only want specific output, not all of the default output that is
included.  Is there a way to specify, for instance, just the model
summary table and suppress the rest and direct it to an .spo file or
better yet to a .csv file.

 

I am new to this list.  Have users found the archives useful to search
for old postings, or is too cumbersome to get through all of the data?

 

Thanks for your help.

 

Dede Williams

TargusInfo

====================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: Suppressing default output from Regressions

ViAnn Beadle
Check out the OMS facility which allows you to specify specific tables to be
output to a destination of your choice.

I can't say too much about the archive but I notice that the same questions
pop-up all the time on this list. Either the posters don't know about the
archive or have not found answers to their relatively common questions.

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Dede Williams
Sent: Thursday, January 03, 2008 6:11 PM
To: [hidden email]
Subject: Suppressing default output from Regressions

Hello.



I'm trying to run a logistic regression for many models from which I
only want specific output, not all of the default output that is
included.  Is there a way to specify, for instance, just the model
summary table and suppress the rest and direct it to an .spo file or
better yet to a .csv file.



I am new to this list.  Have users found the archives useful to search
for old postings, or is too cumbersome to get through all of the data?



Thanks for your help.



Dede Williams

TargusInfo

=======
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: Suppressing default output from Regressions

Daniel Robertson
In reply to this post by Dede Williams
Hi Dede,
For my part, I find searching the archives at
<http://www.listserv.uga.edu/archives/spssx-l.html> very useful -- not
browsing by month, but searching. I see that Nabble also archives SPSSX-L
at <http://www.nabble.com/SPSSX-Discussion-f15527.html> and provides a
somewhat more modern interface.

HTH,
Dan R.


> I am new to this list.  Have users found the archives useful to search
> for old postings, or is too cumbersome to get through all of the data?
>
>
>
> Thanks for your help.
>
>
>
> Dede Williams


--
Daniel Robertson
Senior Research and Planning Associate
Institutional Research and Planning
Cornell University / irp.cornell.edu

=====================
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: Suppressing default output from Regressions

Peck, Jon
In reply to this post by Dede Williams
As ViAnn said, OMS gives you control over what appears in the Viewer and what kinds of output are written to external files.  Here is an example that suppresses all the tables from the Viewer and writes a tabbed text version of the model summary table to a file.  There are various other output formats available, some of which are easier to work with programmatically if you have the tools.

You might also want to use sav format, which produces an SPSS dataset with the requested tables.

The first oms request suppresses all tables except the Model summary from the Viewer.
The second one captures the model summary table and writes it to a file.

The omsend command terminates both requests.

HTH,
Jon Peck

oms /exceptif subtypes='Model Summary' /destination viewer=no.
oms /if subtypes='Model Summary' /destination format=tabtext outfile='c:/temp/logistic.txt'.
LOGISTIC REGRESSION VARIABLES  americanOrigin
  /METHOD = ENTER engine horse
  /CRITERIA = PIN(.05) POUT(.10) ITERATE(20) CUT(.5) .
omsend.

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Dede Williams
Sent: Thursday, January 03, 2008 6:11 PM
To: [hidden email]
Subject: [SPSSX-L] Suppressing default output from Regressions

Hello.



I'm trying to run a logistic regression for many models from which I
only want specific output, not all of the default output that is
included.  Is there a way to specify, for instance, just the model
summary table and suppress the rest and direct it to an .spo file or
better yet to a .csv file.



I am new to this list.  Have users found the archives useful to search
for old postings, or is too cumbersome to get through all of the data?



Thanks for your help.



Dede Williams

TargusInfo

=======
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: Suppressing default output from Regressions

Pearmain, Michael
In reply to this post by Dede Williams
Hi Dede,

In my view there are a couple of solutions to this problem, a pre and
post (so to speak)

1.) You could create an autoscript to run as the output is produced to
suppress any tables you don't want, (Knowledge of SAX basic needed here)

You can right click on the table and an option for edit autoscript
should appear.

2.) You could run a post analysis script of piece of python to delete
the tables after the analysis has run, (this would be my preference as I
like to see some statistics before deleted them)

The below finds object items with a title of "Multiple Response Sets" in
the output viewer, selects them and then deletes them, by adding an 'OR'
you could select multiple table types get rid of notes or warnings

Something like

begin program.
import viewer

spssappObj = viewer.spssapp()
outputdoc = spssappObj.GetDesignatedOutput()
objItems = outputdoc.Items
outputdoc.ClearSelection()

for i in range(objItems.Count):
        objItem = objItems.GetItem(i)
        intSPSSType = objItem.SPSSType
        if ((intSPSSType == 5 and objItem.Label == "Multiple Response
Sets")):
                objItem.Selected = True
outputdoc.Remove()

end program.

HtH

Mike


-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Dede Williams
Sent: 04 January 2008 01:11
To: [hidden email]
Subject: Suppressing default output from Regressions

Hello.



I'm trying to run a logistic regression for many models from which I
only want specific output, not all of the default output that is
included.  Is there a way to specify, for instance, just the model
summary table and suppress the rest and direct it to an .spo file or
better yet to a .csv file.



I am new to this list.  Have users found the archives useful to search
for old postings, or is too cumbersome to get through all of the data?



Thanks for your help.



Dede Williams

TargusInfo

=======
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: Suppressing default output from Regressions

Jason Burke
In reply to this post by Dede Williams
Following ViAnn's suggestion, here is an example using the output
management system (OMS) command syntax. I offers a wealth of
capabilities to achieve what you desire, plus much more.

HTH


Jason



DATASET DECLARE Summary .

' Route model summary to a new SPSS data set .
OMS
 /SELECT ALL
 /IF SUBTYPES = ['Model Summary']
 /DESTINATION
    FORMAT = SAV
    OUTFILE = Summary .

' Supress all but the Model summary from being displayed .
OMS
 /SELECT ALL
 /EXCEPTIF SUBTYPES = ['Model Summary']
 /DESTINATION VIEWER = No .

' Execute LOGISTIC with desired specifications .
LOGISTIC REGRESSION VARIABLES indep_var
  /METHOD=ENTER dep_var1 dep_var2 dep_var3
  /CRITERIA=PIN(.05) CUT(.5) .

* Tell OMS we're done for now .
OMSEND .

On 1/4/08, Dede Williams <[hidden email]> wrote:

> Hello.
>
>
>
> I'm trying to run a logistic regression for many models from which I
> only want specific output, not all of the default output that is
> included.  Is there a way to specify, for instance, just the model
> summary table and suppress the rest and direct it to an .spo file or
> better yet to a .csv file.
>
>
>
> I am new to this list.  Have users found the archives useful to search
> for old postings, or is too cumbersome to get through all of the data?
>
>
>
> Thanks for your help.
>
>
>
> Dede Williams
>
> TargusInfo
>
> 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