PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, August 18, 2022

[FIXED] How to save regression coefficients to file in SAS?`

 August 18, 2022     logistic-regression, output, sas     No comments   

Issue

I am trying to carry out a logistic regression with SAS. I have few settings for the model, and try to compare the difference.

What I want to archieve is to output the estimated coefficients to a file. I think ODS maybe a promising way, but don't know how to use it.

Can anyone write me a simple example?

Thank you very much.


Solution

To add a bit of additional color; ODS OUTPUT <NAME>=DATASET ... ; will save the output into the specified dataset.

Use ODS TRACE get the names of output tables. Information on the tables will be written to the log.

ods trace on;
ods output ParameterEstimates=estimates;
proc logistic data=test;
model y = i;
run;
ods trace off;


Answered By - DomPazz
Answer Checked By - Marilyn (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing