R assignment #6
1: Open R program
2: pnorm command entries
> pnorm(0)
[1] 0.5
> pnorm(1.96)
[1] 0.9750021
> pnorm(1.96)
[1] 0.02499790
> 1pnorm(1.96)
[1] 0.02499790
> pnorm(.5)
[1] 0.6914625
> pnorm(1.3)
[1] 0.9031995
> pnorm(1.6)
[1] 0.05479929
> 1pnorm(3.0)
[1] 0.001349898
The Pnorm command gives the standard normal curve areas from the Zscore (the number in the
parenthesis). The output of this function is the area under the curve up to that Zscore. These
outputs match the numbers on the chart up to the tenthousandths place or four decimals.
3: qnorm command entries
> qnorm(0.05)
[1] 1.644854
> qnorm(0.2)
[1] 0.8416212
> qnorm(0.5)
[1] 0
> qnorm(0.90)
[1] 1.281552
> qnorm(0.95)
[1] 1.644854
> qnorm(1.01)
[1] NaN
Warning message:
In qnorm(p, mean, sd, lower.tail, log.p) : NaNs produced
The qnorm command gives the z score from the percent area pelow the standard normal curve, or
the probability. In this way it is akin to an inverse function of the pnorm since it takes in an area
(or a percent of an area for that matter) and puts out a Zscore. The numbers match the standard
normal density function chart to the hundredths place or two decimals. The reason an error
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
message was produced when a value greater than one was entered is because probabilities in
This is the end of the preview.
Sign up
to
access the rest of the document.
 Spring '08
 Hernandez
 Statistics, Normal Distribution, normal curve areas, pnorm, command entries

Click to edit the document details