{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

View Full Document Right Arrow Icon
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 (or a percent of an area for that matter) and puts out a Z-score. The numbers match the standard normal density function chart to the hundredths place or two decimals. The reason an error
Background image of page 1

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

View Full Document Right Arrow Icon
message was produced when a value greater than one was entered is because probabilities in
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}