s-news
[Top] [All Lists]

Exact p-values

To: <s-news@lists.biostat.wustl.edu>
Subject: Exact p-values
From: Jose María Fedriani Laffitte <fedriani@ebd.csic.es>
Date: Thu, 13 Feb 2003 12:43:52 -0800
User-agent: Microsoft-Entourage/9.0.2509
Dear all,

    I want to get the exact p-values, on 1 degree of freedom, for an array
of chi-square values.  When my chi-square values are equal or lower than
29.7, I get the exact associated p-values.  Thus, for instance:

>pchisq(29.7, df=1)
[1] 0.9999999

However, when my chi-square values are greater or equal to 29.8 what I get
is:

>pchisq(29.8, df=1)
[1] 1


    Could anyone tell me how to fix this trivial issue?  Very grateful, Jose
M. Fedriani

****************************************
Jose Mª Fedriani Laffitte
Estacion Biologica de Donana (CSIC)
Avda. Mª Luisa s/n
41013-Sevilla
Spain
Tel. +34-954232340
Fax +34-954621125
http://ebd.csic.es


<Prev in Thread] Current Thread [Next in Thread>