[R] calculate probability

Joshua Wiley jwiley.psych at gmail.com
Sat Nov 6 06:09:12 CET 2010


Hi Jumlong,

Is this what you want?

> pnorm(q = c(2.4, 2.9), mean = 2, sd = 1)
[1] 0.6554217 0.8159399

HTH,

Josh


On Fri, Nov 5, 2010 at 9:57 PM, Jumlong Vongprasert
<jumlong.ubru at gmail.com> wrote:
> Dear Joshua Wiley
> 2.4 and 2.9 are score, and mean = 2 variance = 1 n = 10 with normal
> distribution.
> Many Thanks.
> Jumlong
>
> 2010/11/6 Joshua Wiley <jwiley.psych at gmail.com>
>>
>> Dear Jumlong,
>>
>> Perhaps look at ?pnorm
>>
>> I am not really certain what you want to do.  Are 2.4 and 2.9 scores
>> or means?  Is the variance 2?  What distribution are you assuming
>> these values come from?  If you explain a bit more what you are after,
>> we can help more.
>>
>> Cheers,
>>
>> Josh
>>
>> On Fri, Nov 5, 2010 at 9:47 PM, Jumlong Vongprasert
>> <jumlong.ubru at gmail.com> wrote:
>> > Dear All
>> > I have 2 value assume 2.4 and 2.9 and mean = 2 variance = with n = 10
>> > I want to find probability = 2.4 and 2.9.
>> > How I can do this.
>> > Many Thanks.
>> > Jumlong
>> >
>> > --
>> > Jumlong Vongprasert Assist, Prof.
>> > Institute of Research and Development
>> > Ubon Ratchathani Rajabhat University
>> > Ubon Ratchathani
>> > THAILAND
>> > 34000
>> >
>> >        [[alternative HTML version deleted]]
>> >
>> > ______________________________________________
>> > R-help at r-project.org mailing list
>> > https://stat.ethz.ch/mailman/listinfo/r-help
>> > PLEASE do read the posting guide
>> > http://www.R-project.org/posting-guide.html
>> > and provide commented, minimal, self-contained, reproducible code.
>> >
>>
>>
>>
>> --
>> Joshua Wiley
>> Ph.D. Student, Health Psychology
>> University of California, Los Angeles
>> http://www.joshuawiley.com/
>
>
>
> --
> Jumlong Vongprasert Assist, Prof.
> Institute of Research and Development
> Ubon Ratchathani Rajabhat University
> Ubon Ratchathani
> THAILAND
> 34000
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/



More information about the R-help mailing list