*! version 0.31

Title

onewai -- Immediate oneway analysis of variance similar to
oneway and loneway.
However, here all results are gathered in matrices.
Input is either a matrix of n's, means and standard deviations or n's, means
and standard deviations given separately.

Syntax

onewai
[,
options]

Either
nmsmatrix(string) A n, means, SDs matrix. Ie n, means and SDs
in a column matrix.

transpose If the nmsmatrix(string) is a n, means
and SDs row matrix it can be transposed.

or
means(numlist) A numlist of means

n(numlist) A numlist of n's.
This numlist is resized the means(numlist)

sds(numlist) A numlist of SD's.
This numlist is resized the means(numlist)

Examples

Compare three means with same n and two standard deviations:

`"onewai, n(20) means(122 113 130) sds(6 7)"'

Compare four groups with different n and standard deviations:

`"onewai, n(3 3 2 2) means(111.9 52.733333 78.65 77.5) sds(6.7535176 5.3928966 11.667262 14.424978)"'

Compare the result to:

`"webuse apple"'

`"oneway weight treatment"'

`"loneway weight treatment"'

Compare two groups with different n and standard deviations:

`"onewai, n(20 30) m(19 20) s(3 2)"'

Compare the result to:

`"ttesti 20 19 3 30 20 2"'

Integration to eg sumat using nmsmatrix:

`"webuse apple"'

`"sumat weight, statistics(n mean sd) rowby(treatment)"'

`"onewai , nmsmatrix(r(sumat))"'

Integration to eg sumat using nmsmatrix and transpose:

`"webuse apple"'

`"sumat weight, statistics(n mean sd) rowby(treatment)"'

`"onewai , nmsmatrix(r(sumat)') transpose"'

Stored results

onewai stores the following in r():

Matrix

r(anova) The ANOVA table.

r(bartletts) The Bartlett's test of equal variances table.

r(table) The means, standard deviations, standard errors and
confidence intervals table.

r(total) The means, standard deviations, standard errors and
confidence intervals table for totals only.

r(icc) The ICC table.

Authors and support

Author:

Niels Henrik Bruun,

Aalborg University Hospital

Support:

niels.henrik.bruun@gmail.com