BookmarkSubscribeRSS Feed
kbwork
Calcite | Level 5

outestDoes anyone know how to write a statement like outest=estparms but that outputs all of the nonlinear OLS parameter estimates for each cluster instead of just the estimate?  So that creates a table that shows the parameter, estimate, approx STD Err, t value and approx Pr > |t| for each cluster?

I am currently using the statement below.  I am looking to find a better way to look at the parameter estimates for each cluster side by side as opposed to each on their own page like the pdf creates.

ods pdf file=' ***** ';

ods trace on;

proc model data = Opti.total_imp;

endogenous clicks;

impressions = a1*(1+a3*Mon+a4*tue +a5*Wed +a6*Thu + a7*Fri)*a8;

fit  impressions /ols outest=estparms maxiter=200;

by cluster;

run;

quit;

ods trace off;

ods pdf close;

1 REPLY 1
Reeza
Super User

I think you'll have to capture the table and then transpose it.

Have you looked at the ODS table?

ODS TABLE PARAMETERESTIMATES=want;

proc model data = Opti.total_imp;

endogenous clicks;

impressions = a1*(1+a3*Mon+a4*tue +a5*Wed +a6*Thu + a7*Fri)*a8;

fit  impressions /ols outest=estparms maxiter=200;

by cluster;

run;

quit;

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 926 views
  • 0 likes
  • 2 in conversation