|
Hello,
I wondered if any one could help me with the syntax to solve my problem: I have entered a two-by-two table in to the data editor; I now wish to determine the odds ratio and the 95% confidence limits which I can do from the Analyze menu by selecting the Descriptive Statistics then Crosstab, and is straight forward. The output window gives me the results that I need in a table. It is the odds ratio and the confidence limits that I would like to save to a plain ascii file that is displayed in a table in the output window. I've purchased the book "An Intermediate Guide to SPSS programming" by Sarah Boslaugh, but it does not answer my query. So, is it possible to save the variables to an external file and if so could you please give an example of the syntax. Many thanks, Gordon. ===================== 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 |
|
The general way to do this is with OMS, the Output Management System. It allows you to capture any SPSS output and write it to a file in various formats, including plain text. Here is an example using crosstabs.
oms select tables /if subtype='Risk Estimate' /destination outfile='c:/temp/risk.txt' format=text. CROSSTABS /TABLES=gths BY jobcat1 /FORMAT=AVALUE TABLES /STATISTICS= RISK /CELLS=COUNT /COUNT ROUND CELL. omsend. You specify the table type you want to capture in the subtype= part of the syntax. You can find the subtype for any particular table by right clicking on the table in the Viewer outline and selecting Copy OMS Table Subtype. You can also find this information under Utilties/OMS Identifiers or in the OMS Control Panel. HTH, Jon Peck -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Gordon Brindle Sent: Thursday, April 17, 2008 5:37 AM To: [hidden email] Subject: [SPSSX-L] Fwd: Saving output variables to an output file distinctly Hello, I wondered if any one could help me with the syntax to solve my problem: I have entered a two-by-two table in to the data editor; I now wish to determine the odds ratio and the 95% confidence limits which I can do from the Analyze menu by selecting the Descriptive Statistics then Crosstab, and is straight forward. The output window gives me the results that I need in a table. It is the odds ratio and the confidence limits that I would like to save to a plain ascii file that is displayed in a table in the output window. I've purchased the book "An Intermediate Guide to SPSS programming" by Sarah Boslaugh, but it does not answer my query. So, is it possible to save the variables to an external file and if so could you please give an example of the syntax. Many thanks, Gordon. ===================== 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 |
| Free forum by Nabble | Edit this page |
