This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: 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 the probability....
View
Full
Document
This note was uploaded on 06/25/2008 for the course STAT 1211 taught by Professor Hernandez during the Spring '08 term at Columbia.
 Spring '08
 Hernandez
 Statistics

Click to edit the document details