Anova2w: Difference between revisions
Jump to navigation
Jump to search
imported>Scott |
imported>Jeremy |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
===Synopsis=== | ===Synopsis=== | ||
:anova2w(dat,alpha) | : anova2w(dat,alpha) | ||
: results = anova2w(dat,alpha) | |||
===Description=== | ===Description=== | ||
Line 37: | Line 38: | ||
===See Also=== | ===See Also=== | ||
[[anova1w]], [[ftest]], [[statdemo]] | [[anova1w]], [[anovadoe]], [[ftest]], [[statdemo]] |
Latest revision as of 12:07, 31 October 2011
Purpose
Two way analysis of variance.
Synopsis
- anova2w(dat,alpha)
- results = anova2w(dat,alpha)
Description
Calculates two way ANOVA table and tests significance of between factors variation (it is assumed that each column of the data represents a different factor) and between blocks variation (it is assumed that each row represents a block). Inputs are the data table (dat) and the optional desired confidence level (alpha), expressed as a fraction (e.g. 0.99, 0.999) {default is 0.95}. A text table is displayed if no output is requested.
Inputs
- dat = Data table where columns are factors.
Optional Inputs
- alpha = desired confidence level expressed as a fraction (default = 0.95)
Outputs
- results = A structure array containing all the contents of the table including the fields:
- .ssq : Sum of Squares (with sub-fields for factors, residual and total)
- .dof : Degrees of Freedom (with sub-fields for factors, residual and total)
- .mean_sq : Mean Square (with sub-fields for factors and residual)
- .F : F-test value for factors (with sub-fields for factors and blocks)
- .F_crit : F-test critical value (with sub-fields for factors and blocks)
- .alpha : provided alpha
- .p : p-value for F-test value (alpha where F is significant; with sub-fields for factors and blocks)
- .table : cell array containing the the text description of the results (same as displayed with no outputs).