anovanTable

버전 1.0.0.0 (1.92 KB) 작성자: Sanjay Manohar
Calls ANOVAN, but takes an N-dimensional array as the data.
다운로드 수: 249
업데이트 날짜: 2013/1/11

라이선스 보기

[p, table, stats] = anovanTable(T, varargin)

Syntax exactly as ANOVAN, except X and Y of the linear model are replaced by an N-dimensional array.

Each dimension becomes one factor of the ANOVA design, so if 10 individuals were tested on 2 conditions at 3 timepoints, one would create a 10 x 2 x 3 array.

example:

T = randn([10 2 3]);
p = anovanTable(T, ...
'varnames', {'Individual', 'Condition','Time'}, ...
);

this is identical to converting your table to a vector Y = T(:), and creating a design matrix X where each row contains the table subscripts of the corresponding item in vector Y.

Repeated measures can be achieved by adding an extra dimension to the array, and using the parameters ('collapse', DIM). If there are different numbers of measurements in each condition, then the extra dimensions can be padded with NaN.

To see the actual arguments that get passed to ANOVAN, you can get the 5th and 6th return values, which correspond to Y and X respectively.

인용 양식

Sanjay Manohar (2024). anovanTable (https://www.mathworks.com/matlabcentral/fileexchange/39800-anovantable), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 ANOVA에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0