R-6 - R assignment #6 1: Open R program 2: pnorm command...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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 > 1-pnorm(1.96) [1] 0.02499790 > pnorm(.5) [1] 0.6914625 > pnorm(1.3) [1] 0.9031995 > pnorm(-1.6) [1] 0.05479929 > 1-pnorm(3.0) [1] 0.001349898 The Pnorm command gives the standard normal curve areas from the Z-score (the number in the parenthesis). The output of this function is the area under the curve up to that Z-score. These outputs match the numbers on the chart up to the ten-thousandths 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.

Page1 / 3

R-6 - R assignment #6 1: Open R program 2: pnorm command...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online