help-octave
[Top][All Lists]
Advanced

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

Chi-Square Leasqr.m


From: aegreen
Subject: Chi-Square Leasqr.m
Date: Mon, 14 Mar 2011 12:03:13 -0700 (PDT)

I am trying to assess the fit of an exponential equation to a set of data.

I fit the data to an equation using leasqr.m but I want to calculate the
chi-squared value and complete a chi-square test.

if:

f = computed values
y = observed values

I have tried using chisquare_test_homogeneity(f,y,c)

Not sure what c is, so I entered the x array used for leasqr.m

What I receive in return though is:
NaN
NaN
36

36 is the correct degrees of freedom.

What am I missing?

--
View this message in context: 
http://octave.1599824.n4.nabble.com/Chi-Square-Leasqr-m-tp3354730p3354730.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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