BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
hellohere
Pyrite | Level 9

I get one histogram/distribution, which is good and close to Normal (see blow).

 

wt_A.jpg

 

I get another one, which is not good and skewed heavily. (see below).

How to convert this histogram/distribution to the one above, but mapping/changing value?!

Code, or Logic?!

 

wt_B.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
sbxkoenk
SAS Super FREQ

I think you will have to resort anyway to:

Box-Cox or Yeo-Johnson transformations.

See here:

I also have SAS-code for that Yeo-Johnson transformation ... but cannot spot it right now.

For Box-Cox code, see the post just above (with link to SAS doc).

 

Koen

View solution in original post

5 REPLIES 5
ballardw
Super User

Are you requesting how to change the values of your variable(s) to a normal distribution or close to it? Or how to change the graph so the tails on the outliers to right do not appear?

If it is to change the appearance of the graph then you should provide the code you are currently using to create the graph so we can make informed suggestions. While a "picture is worth a thousand words" the picture can't actually show us things like the options used in code.

hellohere
Pyrite | Level 9
I need change the values of variable(s) to a perfect/theoretical normal distribution or close to it.
Better if Lamda Distribution due to non-zero.

By indexing, I know how to map A to B already.
hellohere
Pyrite | Level 9
Or simply how to generate the cumulative value of a perfect normal distribution, what function?

By indexing, I can map it.
sbxkoenk
SAS Super FREQ

Hello,

Good luck,
Koen

sbxkoenk
SAS Super FREQ

I think you will have to resort anyway to:

Box-Cox or Yeo-Johnson transformations.

See here:

I also have SAS-code for that Yeo-Johnson transformation ... but cannot spot it right now.

For Box-Cox code, see the post just above (with link to SAS doc).

 

Koen

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 5 replies
  • 475 views
  • 0 likes
  • 3 in conversation