Re: [R] Calculating p-values from your own distribution as an array

2009-01-09 Thread Greg Snow
tain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Stephen Montgomery > Sent: Friday, January 09, 2009 9:29 AM > To: r-help@r-project.org > Subject: [R] Calculatin

[R] Calculating p-values from your own distribution as an array

2009-01-09 Thread Stephen Montgomery
Hi - If I have a hypothetical distribution as an array distribution<-c(0,1,2,3,4,5,6,7,8,9) and I want to find the probability there is a value smaller than a new value. new_value<-4 (such that I'd get this type of output) new_value p-value 4 0.5 3.4 0.4 3 0.4 0