BookmarkSubscribeRSS Feed
jzhang332002
Fluorite | Level 6

Hi,

  I try to output fitted parameter to SAS dataset from proc GLM. I used "ODS OUTPUT ParameterEstimates=ParEst". Because I used a class variable which has more than 1000 different values, so I used option "noprint" otherwise it will take forever to run. However, after I used "noprint", I can not output my parameter to my data set. Is there an efficient way to set print option values such that I can ouput fitted parameter in to a data set in shortest possilbe run time? Thanks.

Jian

3 REPLIES 3
PGStats
Opal | Level 21

Instead of optopn noprint, frame your GLM procedure call with

ODS SELECT NONE;

proc glm ...

...

ODS OUTPUT ParameterEstimates=ParEst;

run;

ODS SELECT ALL;

PG

PG
jzhang332002
Fluorite | Level 6

I still met problem with my output. Below are my codes:

ODS SELECT NONE;
proc glm data=sevnew;
     class prune num_id;
     model gross_minus_net_loss_ratio = prune * num_id * sale_price_ratio;
     output out=LossSevPred p=yhat;
     ODS OUTPUT ParameterEstimates=LossSevPar;
run;
ODS SELECT ALL;

Where is wrong?

Thanks.

PGStats
Opal | Level 21

Add option / solution to your model statement.

PG

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1211 views
  • 0 likes
  • 2 in conversation