12.07.2015 Views

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

206 <strong>GNU</strong> <strong>Octave</strong>cut (x, breaks)Function FileCreate categorical data out of numerical or continuous data by cutting into intervals.If breaks is a scalar, the data is cut into that many equal-width intervals. If breaksis a vector of break points, the category has length (breaks) - 1 groups.The returned value is a vector of the same size as x telling which group each point inx belongs to. Groups are labelled from 1 to the number of groups; points outside therange of breaks are labelled by NaN.cor (x, y)Function FileThe (i, j)-th entry of cor (x, y) is the correlation between the i-th variable in x andthe j-th variable in y.For matrices, each row is an observation and each column a variable; vectors arealways observations and may be row or column vectors.cor (x) is equivalent to cor (x, x).cloglog (x)Return the complementary log-log function of x, defined as- log (- log (x))Function Filecenter (x)Function Filecenter (x, dim)Function FileIf x is a vector, subtract its mean. If x is a matrix, do the above for each column. Ifthe optional argument dim is given, perform the above operation along this dimension25.2 Tests[pval, f, df b, df w] = anova (y, g)Function FilePerform a one-way analysis of variance (ANOVA). The goal is to test whether thepopulation means of data taken from k different groups are all equal.Data may be given in a single vector y with groups specified by a correspondingvector of group labels g (e.g., numbers from 1 to k). This is the general form whichdoes not impose any restriction on the number of data in each group or the grouplabels.If y is a matrix and g is omitted, each column of y is treated as a group. This formis only appropriate for balanced ANOVA in which the numbers of samples from eachgroup are all equal.Under the null of constant means, the statistic f follows an F distribution with df band df w degrees of freedom.The p-value (1 minus the CDF of this distribution at f ) is returned in pval.If no output argument is given, the standard one-way ANOVA table is printed.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!