-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost_test_parser.m
More file actions
93 lines (85 loc) · 3.26 KB
/
post_test_parser.m
File metadata and controls
93 lines (85 loc) · 3.26 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
function [stat_sig, mean_intuit, std_intuit, mean_tech_intuit, std_tech_intuit] = post_test_parser(fname)
[num, ~, raw] = xlsread(fname);
% delete first 4 records bc they are from aware home
favs = raw(2+4:end-1, 10);
%% Determine Favorite Gestures
n = length(favs);
favs = strrep(favs, 'Brush Up', 'Brush In');
favs = strrep(favs, 'Brush Down', 'Brush Out');
cat_favs = categorical(favs);
%pie(cat_favs)
hold off
histogram(cat_favs, 'Normalization', 'probability', 'DisplayOrder', 'descend')
yt = yticks;
yticklabels(yt*100);
xlabel('Gestures')
ylabel('Percentage of Sample Population')
title(['Preferred Gestures (n = ' num2str(n) ')' ])
hold off
% cover_ct = sum(strcmp(favs, 'Cover'));
% dbl_tap_ct = sum(strcmp(favs, 'Double Tap'));
% brushin_ct = sum(strcmp(favs, 'Brush Up'));
% brushout_ct = sum(strcmp(favs, 'Brush Down'));
% scratch_ct = sum(strcmp(favs, 'Scratch'));
% ftouch_ct = sum(strcmp(favs, 'Force Touch'));
%raw = [raw(1,:); raw(6:end, :)];
likert_data = [num(5:end-1, 1:7) num(5:end-1, end-2:end)];
%all_data = [raw{2:end,3:end-1}];
%% Determine Least Fave Gesture
h8 = raw(2+4:end-1, 11);
n = length(h8);
h8 = strrep(h8, 'Brush Up', 'Brush In');
favs = strrep(h8, 'Brush Down', 'Brush Out');
cat_h8 = categorical(h8);
%pie(cat_h8)
histogram(cat_h8, 'Normalization', 'probability', 'DisplayOrder', 'descend')
yt = yticks;
yticklabels(yt*100);
xlabel('Gestures')
ylabel('Percentage of Sample Population')
title(['Least Preferred Gestures (n = ' num2str(n) ')' ])
hold off
%% Check for Significant Differences in Perceived Intuitiveness
[a, b, stats] = friedman(likert_data(:,2:6))
hold off
stat_sig = multcompare(stats, 'estimate', 'friedman');
hold off
boxplot(likert_data(:,2:6), 'labels', {'ForceTouch', 'Cover', 'Double Tap', 'Scratch', 'Avg of All Gestures'});
hold on
title('Perceived Intuitiveness of Gesture')
ylabel('Likert Rating (Out of 5)')
hold off
%% Mean & Std of Perceived Intuitiveness
mean_likert = mean(likert_data);
std_likert = std(likert_data);
c = categorical({'ForceTouch', 'Cover', 'Double Tap', 'Scratch', 'Avg of All Gestures'});
mean_intuit = mean_likert(2:6);
std_intuit = std_likert(2:6);
bar(c, mean_likert(2:6));
title('Perceived Intuitiveness of Gestures')
xlabel('Gestures')
ylabel('Perceived Intuitiveness (Out of 5)')
hold on
er = errorbar(c, mean_likert(2:6),std_likert(2:6));
er.Color= [0,0,0];
er.LineStyle = 'none';
hold off
%% Mean & Std of Other Metrics
c = categorical({'Intuitiveness of Tutorial', 'Intuitiveness of Jacket', 'Usefulness of Jacket Compared to Other Wearables', 'Likelihood of Buying Jacket', 'Likelihood of Recommending Jacket to Others'});
% standard deviation =
%
% 0.5623 0.7019 0.8314 1.2719 0.9275
% means =
%
% 4.7647 4.3529 3.2353 2.6471 2.8824
mean_tech_intuit = mean_likert([1, 7:10]);
std_tech_intuit = std_likert([1, 7:10]);
bar(c, mean_tech_intuit);
title('Post-Test Perceptions')
ylabel('Likert Rating (Out of 5)')
hold on
er = errorbar(c, mean_tech_intuit,std_tech_intuit);
er.Color= [0,0,0];
er.LineStyle = 'none';
hold off
end