[R] R: chi-Squared distribution

Vito Ricci vito_ricci at yahoo.com
Fri Jan 21 12:44:52 CET 2005


Hi,
Attention chi-squared distribution, unlike F
distribution, has only df1 as parameter, not df1 and
df2. So correct into:

outer(1:3, 1:3, function(df1, df2) qchisq(0.95, df1,
df2))

outer(1:3, 1:3, function(df1, df2) qchisq(0.95, df1))
                         ^^^^^^^^^^^^^^^^^^^^

Regards,
Vito


you wrote:

Dear Rs:


outer(1:3, 1:3, function(df1, df2) qf(0.95, df1, df2))
 

I compare this F distribution results with the table,
the answers were perfect. But I need to see for
chi-sqaured distribution. When I employed the similar
formula

outer(1:3, 1:3, function(df1, df2) qchisq(0.95, df1,
df2)) , I am getting unexpected results. I need to see
the following values:

     p=0.750  .....
1     1.323    

2     2.773   

3     4.108   


Thanking you
Prasanna

=====
Diventare costruttori di soluzioni
Became solutions' constructors

"The business of the statistician is to catalyze 
the scientific learning process."  
George E. P. Box

Top 10 reasons to become a Statistician

     1. Deviation is considered normal
     2. We feel complete and sufficient
     3. We are 'mean' lovers
     4. Statisticians do it discretely and continuously
     5. We are right 95% of the time
     6. We can legally comment on someone's posterior distribution
     7. We may not be normal, but we are transformable
     8. We never have to say we are certain
     9. We are honestly significantly different
    10. No one wants our jobs


Visitate il portale http://www.modugno.it/
e in particolare la sezione su Palese  http://www.modugno.it/archivio/palese/




More information about the R-help mailing list