-
Notifications
You must be signed in to change notification settings - Fork 0
/
IntraClassCorrelation.m
38 lines (29 loc) · 1.15 KB
/
IntraClassCorrelation.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% script aim : Intra-class correlation co-efficient & 95% confidence
% intervals on the mean rating scores
clear
clc
addpath('./')
config;
cd(processedDataPath)
addpath(genpath(processedDataPath));
% get the processed data
load('ObjectData.mat');
load('FaceData.mat');
%clean the excluded participant data before calling the function
faceAnalysisData = dataExclude(combinedFaceCells,'Sub-119');
objectAnalysisData = combinedObjectCells;
%call the intra-class correlation function
% Face:
[meanRatingsTable, faceICCTable] = intraClassCorrelationFunction(faceAnalysisData,"Face");
% Save the results:
faceICCFile = 'FaceICC.mat';
save(fullfile(processedDataPath, faceICCFile), 'faceICCTable');
faceMeanRatingFile = 'FaceMeanRatingsTable.mat';
save(fullfile(processedDataPath, faceMeanRatingFile), 'meanRatingsTable');
% Object:
[meanRatingsTable, objectICCTable] =intraClassCorrelationFunction(combinedObjectCells,"Object");
% save the files
objectICCFile = 'ObjectICC.mat';
save(fullfile(processedDataPath, objectICCFile), 'objectICCTable');
objectMeanRatingFile = 'ObjectMeanRatingsTable.mat';
save(fullfile(processedDataPath, objectMeanRatingFile), 'meanRatingsTable');