help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chi2 test


From: Javier Garcia Falaguera
Subject: Re: Chi2 test
Date: Wed, 13 Feb 2019 18:41:14 +0100

Good evening James, 

Could you please take a look to this problem I have.

Im trying to perform the chisquare_test_homogeneity over two different vectors.

The data is:

d1=[417.76 3753.7 2977.3 1780.7 1068.4 651.9 447.33 264.95 189.78 145.41 101.05 86.262 73.939 64.081 40.667 34.505 33.273 30.808 22.182 20.949 13.556]
d2=[1683         3811 3053 1886 874         382         213         95         88         39         28         22         13         7         8         5         2         3         2         2         2]
c1=[0.023734 0.071202 0.11867 0.16614 0.21361 0.26107 0.30854 0.35601 0.40348 0.45095 0.49842 0.54588 0.59335 0.64082 0.68829 0.73576 0.78322 0.83069 0.87816 0.92563 0.9731]

The instruction I am using is the following one:

[pval_mu, chisq_mu, df_mu] = chisquare_test_homogeneity (d1, d2, c1);

After the execution, the values are:

pval_mu = 0;
chisq_mu = NaN;
df_mu = 21;

I dont understand this behavior, because I have tried with another set of data and it worked.

It is a .m where I use this test 2 times.

Could you please give it a look?

Kind regards, 


JGF 

El sáb., 13 oct. 2018 a las 18:45, James Sherman Jr. (<address@hidden>) escribió:
On Sat, Oct 13, 2018 at 12:21 PM Javier Garcia Falaguera <address@hidden> wrote:
Good afternoon, 

I'm trying to perform a chi2 test in octave, but I cannot find any sentence or function to perform.
My Octave version is the 4.4.0.

I have tried also to install the package but I have the following error

error: the following dependencies were unsatisfied:
   statistics needs io >= 1.0.18

I do not know how to continue.

Many thanks or the help.

KR

JGF


Hi Javier,

That error message is telling you that you need to install(and load) the io package (version 1.0.18).  If you can access the octave forge repository, you can do:
>>pkg install -forge io
>>pkg load io

and you should be good to go.

Hope this helps,

James Sherman Jr.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]