필터 지우기
필터 지우기

Repeated measure with 2 between subject factors

조회 수: 1 (최근 30일)
AN NING
AN NING 2018년 2월 9일
편집: AN NING 2018년 2월 9일
I have a mixed repeated measure data, how to fit it into the matlab data, and my code doesn't work,always error.
Data=[ PND28W0 PND64W6 PND82W9 PND94W11];
LTdata=Data(1:77,:);% Load data from Long term
LTCHSD=CHSD(1:77,1);% Load factor 1 : CHSD
LTPhA=PhA(1:77,1);% Load factor 1 : PhA
%%%%%%%%%%%%%%%%Store the data in a table array.
t = table(LTCHSD,LTPhA,LTdata(:,1),LTdata(:,2),LTdata(:,3),LTdata(:,4),'VariableNames',{'LTCHSD','LTPhA','meas1','meas2','meas3','meas4'});
Meas = table([1 2 3 4]','VariableNames',{'Measurements'}); % Repeated measure part of data loading table
%%%%%%%%%%%%%%%%%%Fit a repeated measures model, where the measurements are the responses and the species is the predictor variable.
rm = fitrm(between,'meas1-meas4~LTCHSD*LTPhA','WithinDesign',Meas);
% Descriptive data
GS = grpstats(rm,{'LTCHSD','LTPhA'},{'mean','std',@skewness,@kurtosis}); %%%%%%%%%%%%%%%%%%%%Perform repeated measures analysis of variance.
ranovatbl = ranova(rm);
disp(ranovatbl)

답변 (0개)

카테고리

Help CenterFile Exchange에서 Regression Tree Ensembles에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by