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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 813 views
  • 0 likes
  • 3 in conversation