-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathComputer Design Matrix Lenk.txt
48 lines (47 loc) · 1.91 KB
/
Computer Design Matrix Lenk.txt
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
/*
***********************************************************
* Common design matrix for computer survey.
***********************************************************
*/
@ Calibration design matrix @
x = {
@ A B C D E F G H I J K L M @@ Profile @
1 1 -1 1 1 -1 -1 1 -1 -1 1 1 1 -1, @ 1 @
1 1 1 1 -1 1 -1 1 1 -1 -1 -1 1 1, @ 2 @
1 1 -1 -1 -1 1 1 1 -1 1 -1 1 1 1, @ 3 @
1 1 1 -1 1 -1 1 1 1 1 1 -1 1 -1, @ 4 @
1 1 1 -1 1 1 -1 -1 1 -1 1 1 -1 1, @ 5 @
1 -1 -1 -1 -1 1 -1 -1 1 1 1 -1 1 -1, @ 6 @
1 -1 -1 1 1 -1 1 -1 1 -1 -1 -1 1 1, @ 7 @
1 -1 1 -1 1 1 1 1 -1 -1 -1 -1 -1 -1, @ 8 @
1 -1 -1 1 1 1 -1 1 1 1 -1 1 -1 -1, @ 9 @
1 1 -1 1 1 1 1 -1 -1 1 1 -1 -1 1, @ 10 @
1 -1 1 -1 1 -1 -1 -1 -1 1 -1 1 1 1, @ 11 @
1 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, @ 12 @
1 1 1 1 -1 -1 1 -1 1 1 -1 1 -1 -1, @ 13 @
1 -1 1 1 -1 1 1 -1 -1 -1 1 1 1 -1, @ 14 @
1 -1 1 1 -1 -1 -1 1 -1 1 1 -1 -1 1, @ 15 @
1 -1 -1 -1 -1 -1 1 1 1 -1 1 1 -1 1 @ 16 @
};
cnst = x[.,1];
a = x[.,2]; @ Hot Line @
b = x[.,3]; @ RAM @
c = x[.,4]; @ Screen Size @
d = x[.,5]; @ CPU Speed @
e = x[.,6]; @ Hard Disk @
f = x[.,7]; @ CD ROM @
g = x[.,8]; @ Cache @
h = x[.,9]; @ Color of unit @
i = x[.,10]; @ Availability @
j = x[.,11]; @ Warranty @
k = x[.,12]; @ Software @
l = x[.,13]; @ Guarantee @
m = x[.,14]; @ Price @
@ Validation design matrix @
xv = {
@ A B C D E F G H I J K L M @@Profile@
1 1 1 1 -1 -1 1 1 1 -1 -1 1 -1 1, @ 17 @
1 -1 1 -1 -1 1 1 -1 1 1 -1 1 1 1, @ 18 @
1 1 1 -1 1 1 -1 -1 1 1 1 -1 -1 -1, @ 19 @
1 -1 -1 -1 1 -1 1 1 -1 1 -1 1 1 -1 @ 20 @
};