Distfit: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Jeremy (Importing text file) |
||
Line 6: | Line 6: | ||
This command will perform the chi-squared test for all supported distributions and then present a list of the supported distributions from the most likely parent distribution to the least likely (along with the associated p-values).The default behavior is to display a figure containing the results. This can be disabled using options. | This command will perform the chi-squared test for all supported distributions and then present a list of the supported distributions from the most likely parent distribution to the least likely (along with the associated p-values).The default behavior is to display a figure containing the results. This can be disabled using options. | ||
'''NOTE: '''Some distributions will ignore parts of the sample that are not part of the supported range. | '''NOTE: '''Some distributions will ignore parts of the sample that are not part of the supported range. | ||
INPUTS | ====INPUTS==== | ||
* x = The name of a matrix (column vector) in which the sample data is stored. | * '''x''' = The name of a matrix (column vector) in which the sample data is stored. | ||
OUTPUTS | ====OUTPUTS==== | ||
The return value is a structure with fields: | The return value is a structure with fields: | ||
* dist = names of candidate distributions. | * '''dist''' = names of candidate distributions. | ||
* pval = ''p''-value associated with the test statistic. | * '''pval''' = ''p''-value associated with the test statistic. | ||
===Options:=== | ===Options:=== | ||
* name : 'options', name indicating that this is an options structure, | * '''name''' : 'options', name indicating that this is an options structure, | ||
* plots : [ 'none' | {'final'} ] governs level of plotting, | * '''plots''' : [ 'none' | {'final'} ] governs level of plotting, | ||
===Examples=== | ===Examples=== | ||
distfit(x) | distfit(x) | ||
===See Also=== | ===See Also=== | ||
[[chitest]] | [[chitest]] |
Revision as of 19:56, 2 September 2008
Purpose
Chitest for all distributions.
Synopsis
- res = distfit(x,options)
Description
This command will perform the chi-squared test for all supported distributions and then present a list of the supported distributions from the most likely parent distribution to the least likely (along with the associated p-values).The default behavior is to display a figure containing the results. This can be disabled using options. NOTE: Some distributions will ignore parts of the sample that are not part of the supported range.
INPUTS
- x = The name of a matrix (column vector) in which the sample data is stored.
OUTPUTS
The return value is a structure with fields:
- dist = names of candidate distributions.
- pval = p-value associated with the test statistic.
Options:
- name : 'options', name indicating that this is an options structure,
- plots : [ 'none' | {'final'} ] governs level of plotting,
Examples
distfit(x)