# A more accurate way of inferring quantiles [closed]

So … I'd like to know which IQ score (sd=15) corresponds to a given percentile.

The straigtforward way in R is to ask

quantile(rnorm(sample,100,15),percentile,0)

Where percentile is between 0 and 100 and sample is a very large number. Occasionally, not large enough for sufficient accuracy.

Does R have a more accurate algorithm? I've googled, and found math that's over my head to the extent that I can't turn it into R code.

Any and all hints and suggestions appreciated.

Thank you.

## closed as off-topic by Peter Flom♦Jul 14 '18 at 12:07

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question appears to be off-topic because EITHER it is not about statistics, machine learning, data analysis, data mining, or data visualization, OR it focuses on programming, debugging, or performing routine operations within a statistical computing platform. If the latter, you could try the support links we maintain." – Peter Flom
If this question can be reworded to fit the rules in the help center, please edit the question.

qnorm is your friend.
qnorm(.5,100,15)