"Silas Adiko" <s_adiko@yahoo.co.uk> wrote in message
news:kngfbm$qb4$1@newscl01ah.mathworks.com...
> Dear Support,
This is not the official Technical Support group. If you're looking for
official support, see the instructions in my signature.
> I am fitting a distribution to data and trying to perform chi-square
> goodness-of-fit test.
>
> I have calculated the likelihood values and wanted to perform
> goodness-of-fit test
>
> However, having read through the Help menus, I tried to run the script
> below but am getting error:
>
> x=claims; [h,p,stats] = chi2gof(X,'cdf','weibull',nparams,2)
>
> where claims is 1xn vector
>
> I do not know where I have gone wrong and would appreciate anyone's
> assistance to resolve this.
What is the exact text of the error you receive when you executed that code?
My guess is that it is "Undefined function or variable 'X'." Remember that
in MATLAB, the variable x is NOT the same as the variable X.
If that is not the error you received, post the full text of the message to
the newsgroup (please do NOT email it to me directly) and someone may be
able to offer a suggestion.
*snip the other question; I don't know the answer off the top of my head*
--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com