BookmarkSubscribeRSS Feed
mexes
Calcite | Level 5

Hi everybody

I have a rounding problem. I got some results from my FMB-Regression.

Some of the estimates are very small. Is there a trick how I can get a number from: 0.00000000336 to 3.36-E9 ?

Here is my code which I used to put the number in a table.

data nw1_fmb; set nw_fmb;

tvalue2=put(tvalue,7.2); if probt<0.1 then p='* ';

if probt<0.05 then p='** '; if probt<0.01 then p='***';

T_VALUE=compress('('||tvalue2||')'); PARAM_EST=compress(put(estimate, 15.12)||p);

proc sort data=nw1_fmb; by name;run;

proc transpose data=nw1_fmb out=nw1b_fmb;

by name; id model; var PARAM_EST T_VALUE;

run;

data mylib.excret_year_nfl; set nw1b_fmb; if _name_='T_VALUE' then do;

name=. ;end;run;

Thank you very much!!

2 REPLIES 2
Reeza
Super User

Scientific notation format, try the format E10. instead. See sas documentation for the format for specific examples and instructions.

mexes
Calcite | Level 5

Hi Reeza

The answer was perfect!

Thank you very much. Problem solved.

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
  • 2 replies
  • 781 views
  • 0 likes
  • 2 in conversation