Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Programming
- /
- Programming
- /
- Is there a SAS equivalent of qnorm() for non-standard normal distribut...

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

☑ This topic is **solved**.
Need further help from the community? Please
sign in and ask a **new** question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 04-22-2024 04:19 PM
(251 views)

How does one in SAS 9.4 generate the 20th percentile of a normal distribution with, say, a mean of 500 and standard deviation of 50? In R I call: qnorm(.20, 500, 50)

I have a bunch of percentiles of reading achievement scores, and I need to convert them to to scale scores.

I'm looking throughout the documentation and can't seem to find a way...unless I need to use PROC IML first, but I'm not very good with that.

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Does the value of X look like what you want:

data junk; x = quantile('normal',.2,500,50); run;

The SAS Quantile function takes as the first parameter the name of the distribution, there are about 25. Then the quantile of interest and then distribution parameters. If you leave off the mean and standard deviation the distribution for Normal will assume 0 and 1.

3 REPLIES 3

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Does the value of X look like what you want:

data junk; x = quantile('normal',.2,500,50); run;

The SAS Quantile function takes as the first parameter the name of the distribution, there are about 25. Then the quantile of interest and then distribution parameters. If you leave off the mean and standard deviation the distribution for Normal will assume 0 and 1.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Nice! I read about that function, but did not get that I could implement it that way.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

@svh wrote:

Nice! I read about that function, but did not get that I could implement it that way.

Understand. Most of those other distributions really want one or more parameters and the examples using Normal in that function don't show the optional mean and std dev.

**Available on demand!**

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

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.