"Tom Lane" <
tl...@mathworks.com> wrote in message <kngrhg$6am$
1...@newscl01ah.mathworks.com>...
Dear Steve and Tom.
I have carried out your suggestions but none of them worked.
Below are the scripts and the full error texts:
X=claims;
[h,p,stats] = chi2gof(X,cdf,'weibull',nparams,2)
??? Error using ==> cdf at 49
Not enough input arguments
>> [h,p,stats] = chi2gof(X,cdf,'weibull','nparams',2)
??? Error using ==> cdf at 49
Not enough input arguments
>> [h,p,stats] = chi2gof(X,@wblcdf,'weibull','nparams',2)
??? Error using ==> chi2gof at 137
Parameter name must be text.
>> [h,p,stats] = chi2gof(X,'@wblcdf','weibull','nparams',2)
??? Error using ==> chi2gof at 137
Invalid parameter name: @wblcdf.
>> [h,p,stats] = chi2gof(X,cdf,'@wblcdf','nparams',2)
??? Error using ==> cdf at 49
Not enough input arguments
>> [h,p,stats] = chi2gof(X,cdf,'wblcdf','nparams',2)
??? Error using ==> cdf at 49
Not enough input arguments
2. Also, I needed the script to calculate chi-square statistic for Negative Binomial Distribution.
I appreciate your assistance very much.
Silas