0% found this document useful (0 votes)
37 views51 pages

Treatment Patient Score TX Pt1 Pt2 TX Pt1 TX Pt2 R Matrix, Balanced Design

- An ANOVA was conducted on patient score data from a medical treatment study with factors for treatment type (medical vs. surgical), patient type (inpatient, outpatient, short stay), and their interactions. - The main effects of patient type and treatment type were not significant, but the interaction between patient type and treatment type was significant. - This suggests that the effect of treatment type (medical vs. surgical) on patient scores depended on the patient type (inpatient, outpatient, short stay).

Uploaded by

Wawex Davis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views51 pages

Treatment Patient Score TX Pt1 Pt2 TX Pt1 TX Pt2 R Matrix, Balanced Design

- An ANOVA was conducted on patient score data from a medical treatment study with factors for treatment type (medical vs. surgical), patient type (inpatient, outpatient, short stay), and their interactions. - The main effects of patient type and treatment type were not significant, but the interaction between patient type and treatment type was significant. - This suggests that the effect of treatment type (medical vs. surgical) on patient scores depended on the patient type (inpatient, outpatient, short stay).

Uploaded by

Wawex Davis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 51

Treatment Patient Score Tx Pt1 Pt2 Tx Pt1 Tx Pt2 r matrix, balanced design

Medical Inpatient 89 1 1 0 1 0 Score Tx Pt1 Pt2


Medical Inpatient 84 1 1 0 1 0 Score 1
Medical Inpatient 86 1 1 0 1 0 Tx -0.3551 1
Medical Outpatient 123 1 0 1 0 1 Pt1 -0.3592 0 1
Medical Outpatient 99 1 0 1 0 1 Pt2 -0.1229 0 0.5 1
Medical Outpatient 117 1 0 1 0 1 Tx Pt1 0.1607 0 0 0
Medical Short Stay 84 1 -1 -1 -1 -1 Tx Pt2 0.6806 0 0 0
Medical Short Stay 109 1 -1 -1 -1 -1
Medical Short Stay 87 1 -1 -1 -1 -1
Surgical Inpatient 103 -1 1 0 -1 0
Surgical Inpatient 100 -1 1 0 -1 0
Surgical Inpatient 112 -1 1 0 -1 0
Surgical Outpatient 100 -1 0 1 0 -1
Surgical Outpatient 92 -1 0 1 0 -1
Surgical Outpatient 93 -1 0 1 0 -1
Surgical Short Stay 126 -1 -1 -1 1 1
Surgical Short Stay 127 -1 -1 -1 1 1
Surgical Short Stay 117 -1 -1 -1 1 1
anced design
Tx Pt1 Tx Pt2

1
0.5 1
Treatment Patient Score Tx Pt1 Pt2 Tx Pt1 Tx Pt2 r matrix, unbalanced design
Medical Inpatient 89 1 1 0 1 0 Score Tx Pt1
Medical Inpatient 84 1 1 0 1 0 Score 1
Medical Inpatient 86 1 1 0 1 0 Tx -0.3551 1
Medical Outpatient 123 1 0 1 0 1 Pt1 -0.3019 0.0655 1
Medical Outpatient 99 1 0 1 0 1 Pt2 -0.0318 0.1374 0.5579
Medical Outpatient 117 1 0 1 0 1 Tx Pt1 0.11074 -0.0655 -0.0730
Medical Short Stay 84 1 -1 -1 -1 -1 Tx Pt2 0.59479 -0.1374 -0.0720
Medical Short Stay 109 1 -1 -1 -1 -1
Medical Short Stay 87 1 -1 -1 -1 -1
Surgical Inpatient 103 -1 1 0 -1 0
Surgical Inpatient 100 -1 1 0 -1 0
Surgical Inpatient 112 -1 1 0 -1 0
Surgical Outpatient 100 -1 0 1 0 -1
Surgical Outpatient 92 -1 0 1 0 -1
Surgical Short Stay 93 -1 -1 -1 1 1
Surgical Short Stay 126 -1 -1 -1 1 1
Surgical Short Stay 127 -1 -1 -1 1 1
Surgical Short Stay 117 -1 -1 -1 1 1
x, unbalanced design
Pt2 Tx Pt1 Tx Pt2

1
-0.0720 1
0.0189 0.5579 1
Treatment Patient Score Tx Pt1 Pt2 Tx Pt1 Tx Pt2 SUMMARY OUTPUT
Medical Inpatient 89 1 1 0 1 0
Medical Inpatient 84 1 1 0 1 0 ANOVA
Medical Inpatient 86 1 1 0 1 0 df SS MS
Medical Outpatient 123 1 0 1 0 1 Regression 5 2856 571.2
Medical Outpatient 99 1 0 1 0 1 Residual 12 874 72.8
Medical Outpatient 117 1 0 1 0 1 Total 17 3730
Medical Short Stay 84 1 -1 -1 -1 -1
Medical Short Stay 109 1 -1 -1 -1 -1 Main Effects
Medical Short Stay 87 1 -1 -1 -1 -1 Tx Pt1 Pt2
Surgical Inpatient 103 -1 1 0 -1 0 Prop of Var 0.126 0.129 0.004
Surgical Inpatient 100 -1 1 0 -1 0 SS 470.222 497.333
Surgical Inpatient 112 -1 1 0 -1 0
Surgical Outpatient 100 -1 0 1 0 -1 ANOVA
Surgical Outpatient 92 -1 0 1 0 -1 SV SS df MS
Surgical Outpatient 93 -1 0 1 0 -1 Treatment 470.222 1 470.222
Surgical Short Stay 126 -1 -1 -1 1 1 Patient 497.333 2 248.667
Surgical Short Stay 127 -1 -1 -1 1 1 Interaction 1888.444 2 944.222
Surgical Short Stay 117 -1 -1 -1 1 1 Effects 2385.778 4 596.444
Within 874 12 72.833
Total 3730 17
F Sig F
7.84 0.002

Interactions
Tx Pt1 Tx Pt2
0.026 0.480
1888.444

F P-value
6.456 0.026
3.414 0.067
12.964 0.001
Treatment Patient Score Pt1 Pt2 Tx Tx Pt1 Tx Pt2 SUMMARY OUTPUT
Medical Inpatient 89 1 0 1 1 0
Medical Inpatient 84 1 0 1 1 0 ANOVA
Medical Inpatient 86 1 0 1 1 0 df SS MS
Medical Outpatient 123 0 1 1 0 1 Regression 5 2856 571.2
Medical Outpatient 99 0 1 1 0 1 Residual 12 874 72.8
Medical Outpatient 117 0 1 1 0 1 Total 17 3730
Medical Short Stay 84 -1 -1 1 -1 -1
Medical Short Stay 109 -1 -1 1 -1 -1 Main Effects
Medical Short Stay 87 -1 -1 1 -1 -1 Pt1 Pt2 Tx
Surgical Inpatient 103 1 0 -1 -1 0 Prop of Var 0.129 0.004 0.126
Surgical Inpatient 100 1 0 -1 -1 0 SS 497.333 470.222
Surgical Inpatient 112 1 0 -1 -1 0
Surgical Outpatient 100 0 1 -1 0 -1 ANOVA
Surgical Outpatient 92 0 1 -1 0 -1 SV SS df MS
Surgical Outpatient 93 0 1 -1 0 -1 Patient 497.333 2 248.667
Surgical Short Stay 126 -1 -1 -1 1 1 Treatment 470.222 1 470.222
Surgical Short Stay 127 -1 -1 -1 1 1 Interaction 1888.444 2 944.222
Surgical Short Stay 117 -1 -1 -1 1 1 Effects 2856.000 5 571.200
Within 874 12 72.833
Total 3730 17
F Sig F
7.84 0.002

Interactions
Tx Pt1 Tx Pt2
0.026 0.480
1888.444

F P-value
3.414 0.067
6.456 0.026
12.964 0.001
Treatment Patient Score Tx Pt1 Pt2 Tx Pt1 Tx Pt2 SUMMARY OUTPUT
Medical Inpatient 89 1 1 0 1 0
Medical Inpatient 84 1 1 0 1 0 ANOVA
Medical Inpatient 86 1 1 0 1 0 df SS MS
Medical Outpatient 123 1 0 1 0 1 Regression 5 2171.917 434.3833
Medical Outpatient 99 1 0 1 0 1 Residual 12 1558.083 129.8403
Medical Outpatient 117 1 0 1 0 1 Total 17 3730
Medical Short Stay 84 1 -1 -1 -1 -1
Medical Short Stay 109 1 -1 -1 -1 -1 Main Effects
Medical Short Stay 87 1 -1 -1 -1 -1 Tx Pt1 Pt2
Surgical Inpatient 103 -1 1 0 -1 0 Prop of Var 0.126 0.078 0.04288
Surgical Inpatient 100 -1 1 0 -1 0 SS 470.222 450.736
Surgical Inpatient 112 -1 1 0 -1 0
Surgical Outpatient 100 -1 0 1 0 -1 ANOVA
Surgical Outpatient 92 -1 0 1 0 -1 SV SS df MS
Surgical Short Stay 93 -1 -1 -1 1 1 Treatment 470.222 1 470.222
Surgical Short Stay 126 -1 -1 -1 1 1 Patient 450.736 2 225.368
Surgical Short Stay 127 -1 -1 -1 1 1 Interaction 1250.959 2 625.479
Surgical Short Stay 117 -1 -1 -1 1 1 Effects 2171.917 5 434.383
Within 1558.083 12 129.840
Total 3730 17
F Sig F
3.34552 0.040162

Interactions
Tx Pt1 Tx Pt2
0.006 0.330
1250.959

F P-value
3.622 0.081
1.736 0.218
4.817 0.022
Treatment Patient Score Pt1 Pt2 Tx Tx Pt1 Tx Pt2 SUMMARY OUTPUT
Medical Inpatient 89 1 0 1 1 0
Medical Inpatient 84 1 0 1 1 0 ANOVA
Medical Inpatient 86 1 0 1 1 0 df SS MS
Medical Outpatient 123 0 1 1 0 1 Regression 5 2171.917 434.3833
Medical Outpatient 99 0 1 1 0 1 Residual 12 1558.083 129.8403
Medical Outpatient 117 0 1 1 0 1 Total 17 3730
Medical Short Stay 84 -1 -1 1 -1 -1
Medical Short Stay 109 -1 -1 1 -1 -1 Main Effects
Medical Short Stay 87 -1 -1 1 -1 -1 Pt1 Pt2 Tx
Surgical Inpatient 103 1 0 -1 -1 0 Prop of Var 0.091 0.027 0.129
Surgical Inpatient 100 1 0 -1 -1 0 SS 441.010 479.948
Surgical Inpatient 112 1 0 -1 -1 0
Surgical Outpatient 100 0 1 -1 0 -1 ANOVA
Surgical Outpatient 92 0 1 -1 0 -1 SV SS df MS
Surgical Short Stay 93 -1 -1 -1 1 1 Patient 441.010 2 220.505
Surgical Short Stay 126 -1 -1 -1 1 1 Treatment 479.948 1 479.948
Surgical Short Stay 127 -1 -1 -1 1 1 Interaction 1250.959 2 625.479
Surgical Short Stay 117 -1 -1 -1 1 1 Effects 2171.917 5 434.383
Within 1558.083 12 129.840
Total 3730 16
F Sig F
3.34552 0.040162

Interactions
Tx Pt1 Tx Pt2
0.006 0.330
1250.959

F P-value
1.698 0.224
3.696 0.079
4.817 0.023
Male Female Sex Party
Republican 15 13 M R
Democrat 17 22 M R
Independent 18 13 M R
M R
Sex Party1 Party2 M R
Sex 1 M R
Party1 -0.038686 1 M R
Party2 -0.12331 0.488852 1 M R
M R
M R
M R
M R
M R
M R
M R
M D
M D
M D
M D
M D
M D
M D
M D
M D
M D
M D
M D
M D
M D
M D
M D
M D
M I
M I
M I
M I
M I
M I
M I
M I
M I
M I
M I
M I
M I
M I
M I
M I
M I
M I
F R
F R
F R
F R
F R
F R
F R
F R
F R
F R
F R
F R
F R
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F D
F I
F I
F I
F I
F I
F I
F I
F I
F I
F I
F I
F I
F I
Sex Party1 Party2
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
1 0 1
1 0 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 -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 0
-1 1 0
-1 1 0
-1 1 0
-1 1 0
-1 1 0
-1 1 0
-1 1 0
-1 1 0
-1 1 0
-1 1 0
-1 1 0
-1 1 0
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 1
-1 0 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 -1 -1
-1 -1 -1
-1 -1 -1
-1 -1 -1
Treatment Patient Score Pt1 Pt2 Tx Tx Pt1 Tx Pt2
Medical Inpatient 89 1 0 1 1 0 LINEST for Score by Main Effects and Interaction
Medical Inpatient 84 1 0 1 1 0 12.514 -5.319 -4.014 2.931
Medical Inpatient 86 1 0 1 1 0 4.066 3.838 2.741 4.066
Medical Outpatient 123 0 1 1 0 1 0.582 11.395 #N/A #N/A
Medical Outpatient 99 0 1 1 0 1 3.346 12.000 #N/A #N/A
Medical Outpatient 117 0 1 1 0 1 2171.917 1558.083 #N/A #N/A
Medical Short Stay 84 -1 -1 1 -1 -1
Medical Short Stay 109 -1 -1 1 -1 -1
Medical Short Stay 87 -1 -1 1 -1 -1 F ratio via SS 3.346
Surgical Inpatient 103 1 0 -1 -1 0
Surgical Inpatient 100 1 0 -1 -1 0 F ratio via R2 3.346
Surgical Inpatient 112 1 0 -1 -1 0
Surgical Outpatient 100 0 1 -1 0 -1 R2 via SS 0.582
Surgical Outpatient 92 0 1 -1 0 -1
Surgical Short Stay 93 -1 -1 -1 1 1
Surgical Short Stay 126 -1 -1 -1 1 1
Surgical Short Stay 127 -1 -1 -1 1 1
Surgical Short Stay 117 -1 -1 -1 1 1
n Effects and Interaction
-5.903 101.569
3.838 2.741
#N/A #N/A
#N/A #N/A
#N/A #N/A
Education Age Income
13 26 35905
10 27 32386 Coefficients for: Intercept
16 29 20440 Age Education
15 31 25333 -469.7192 -1184.206 59562.911
11 30 34512 225.47506 460.084279 7187.7018
12 21 27883 0.4999926 4596.44193 #N/A
14 28 24252 8.4997473 17 #N/A
9 20 39579 359153056 359163734 #N/A
16 31 31061
12 31 25064
14 23 28593
13 22 37829
12 31 36621
19 38 17535
15 33 29017
16 28 29914
10 38 28164
14 32 28345
12 26 39232
14 24 36140
X Matrix X Transpose (X')
Y X0 X1 X2 X3 X0 1 1 1 1 1 1 1 1 1 1 1 1 1 1
66 1 76 44 19 X1 76 41 29 27 76 10 10 31 45 36 16 32 75 87
99 1 41 -4 85 X2 44 -4 20 -1 74 14 92 46 83 34 72 -3 44 77
96 1 29 20 105 X3 19 85 105 58 41 9 58 100 31 51 54 28 82 44
74 1 27 -1 58
38 1 76 74 41
26 1 10 14 9 SSCP Matrix
20 1 10 92 58 20 970 948 1152
90 1 31 46 100 970 60254 48964 57939
13 1 45 83 31 948 48964 62568 52720
13 1 36 34 51 1152 57939 52720 83558
21 1 16 72 54
91 1 32 -3 28
40 1 75 44 82
8 1 87 77 44
54 1 67 46 72
4 1 29 86 4
11 1 78 35 49
50 1 94 57 83
60 1 62 75 93
97 1 49 57 86
1 1 1 1 1 1
67 29 78 94 62 49
46 86 35 57 75 57
72 4 49 83 93 86
X Matrix
Y X0 X1 X2 X3 SSCP Matrix
66 1 76 44 19 20 970 948 1152
99 1 41 -4 85 970 60254 48964 57939
96 1 29 20 105 948 48964 62568 52720
74 1 27 -1 58 1152 57939 52720 83558
38 1 76 74 41
26 1 10 14 9
20 1 10 92 58 Inverse of SSCP
90 1 31 46 100 0.4895399 -0.00256117 -0.002610031 -0.003326519 1.0 0.0 0.0
13 1 45 83 31 -0.002561 8.0851E-05 -1.49046E-05 -1.13476E-05 0.0 1.0 0.0
13 1 36 34 51 -0.00261 -1.4905E-05 6.013214E-05 8.379146E-06 0.0 0.0 1.0
21 1 16 72 54 -0.003327 -1.1348E-05 8.379146E-06 6.041159E-05 0.0 0.0 0.0
91 1 32 -3 28
40 1 75 44 82
8 1 87 77 44
54 1 67 46 72
4 1 29 86 4
11 1 78 35 49
50 1 94 57 83
60 1 62 75 93
97 1 49 57 86
0.0
0.0
0.0
1.0
X Matrix
Y X0 X1 X2 X3 SSCP Matrix
66 1 76 44 19 20 970 948 1152
99 1 41 -4 85 970 60254 48964 57939
96 1 29 20 105 948 48964 62568 52720
74 1 27 -1 58 1152 57939 52720 83558
38 1 76 74 41
26 1 10 14 9
20 1 10 92 58 Inverse of SSCP
90 1 31 46 100 0.4895399 -0.0025612 -0.00261 -0.00332652
13 1 45 83 31 -0.0025612 8.0851E-05 -1.4905E-05 -1.1348E-05
13 1 36 34 51 -0.00261 -1.4905E-05 6.0132E-05 8.37915E-06
21 1 16 72 54 -0.0033265 -1.1348E-05 8.3791E-06 6.04116E-05
91 1 32 -3 28
40 1 75 44 82
8 1 87 77 44 Regression Coefficients
54 1 67 46 72 Intercept X1 X2 X3
4 1 29 86 4 44.980 -0.064 -0.567 0.583
11 1 78 35 49
50 1 94 57 83
60 1 62 75 93 0.583 -0.567 -0.064 44.980
97 1 49 57 86 X3 X2 X1 Intercept
Via MMULT()

Via LINEST()
X Matrix Regression Coefficients Predicted values
Y X0 X1 X2 X3 Intercept X1 X2 X3 Via SUMPRODUCT()
66 1 76 44 19 44.980 -0.064 -0.567 0.583 26.225
99 1 41 -4 85 94.138
96 1 29 20 105 92.952
74 1 27 -1 58 77.605
38 1 76 74 41 22.032
26 1 10 14 9 41.644
20 1 10 92 58 25.966
90 1 31 46 100 75.169
13 1 45 83 31 13.092
13 1 36 34 51 53.105
21 1 16 72 54 34.590
91 1 32 -3 28 60.940
40 1 75 44 82 62.993
8 1 87 77 44 21.373
54 1 67 46 72 LINEST() 56.546
4 1 29 86 4 0.583 -0.567 -0.064 44.980 -3.312
11 1 78 35 49 0.182 0.181 0.210 16.355 48.677
50 1 94 57 83 0.595 23.376 #N/A #N/A 54.985
60 1 62 75 93 7.851 16.000 #N/A #N/A 52.659
97 1 49 57 86 12870.037 8742.913 #N/A #N/A 59.621

SS Regression 12870.037 8742.913 SS Residual

SS Total 21612.95
Errors of
redicted values Prediction
Via TREND()
26.225 39.775
94.138 4.862
92.952 3.048
77.605 -3.605
22.032 15.968
41.644 -15.644
25.966 -5.966
75.169 14.831
13.092 -0.092
53.105 -40.105
34.590 -13.590
60.940 30.060
62.993 -22.993
21.373 -13.373
56.546 -2.546
-3.312 7.312
48.677 -37.677
54.985 -4.985
52.659 7.341
59.621 37.379
X Matrix Regression Coefficients
Y X0 X1 X2 X3 Intercept X1 X2 X3
66 1 76 44 19 44.980 -0.064 -0.567 0.583
99 1 41 -4 85
96 1 29 20 105 LINEST()
74 1 27 -1 58 0.583 -0.567 -0.064 44.980
38 1 76 74 41 0.182 0.181 0.210 16.355
26 1 10 14 9 0.595 23.376 #N/A #N/A
20 1 10 92 58 7.851 16 #N/A #N/A
90 1 31 46 100 12870.037 8742.913 #N/A #N/A
13 1 45 83 31
13 1 36 34 51 SS Regression 12870.037 8742.913 SS Residual
21 1 16 72 54
91 1 32 -3 28 R2 0.595
40 1 75 44 82 Std Error of Estimate 23.376
8 1 87 77 44
54 1 67 46 72 F ratio via R2 7.851
4 1 29 86 4 F ratio via SS 7.851
11 1 78 35 49
50 1 94 57 83
60 1 62 75 93
97 1 49 57 86
Predicted values Deviations
Via SUMPRODUCT()
26.225 39.775
94.138 4.862
92.952 3.048
77.605 -3.605
22.032 15.968
41.644 -15.644
25.966 -5.966
75.169 14.831
13.092 -0.092
53.105 -40.105
34.590 -13.590
60.940 30.060
62.993 -22.993
21.373 -13.373
56.546 -2.546
-3.312 7.312
48.677 -37.677
54.985 -4.985
52.659 7.341
59.621 37.379
X Matrix Regression Coefficients
Y X0 X1 X2 X3 Intercept X1 X2 X3
66 1 76 44 19 44.980 -0.064 -0.567 0.583
99 1 41 -4 85
96 1 29 20 105 SSCP Matrix
74 1 27 -1 58 20 970 948 1152
38 1 76 74 41 970 60254 48964 57939
26 1 10 14 9 948 48964 62568 52720
20 1 10 92 58 1152 57939 52720 83558
90 1 31 46 100
13 1 45 83 31 Inverse of SSCP
13 1 36 34 51 0.4895399 -0.00256117 -0.002610031 -0.003326519
21 1 16 72 54 -0.002561 8.0851E-05 -1.49046E-05 -1.13476E-05
91 1 32 -3 28 -0.00261 -1.4905E-05 6.013214E-05 8.379146E-06
40 1 75 44 82 -0.003327 -1.1348E-05 8.379146E-06 6.041159E-05
8 1 87 77 44
54 1 67 46 72 SSCP Inverse * MS Residual
4 1 29 86 4 267.50029 -1.39950696 -1.426204868 -1.817716749
11 1 78 35 49 -1.399507 0.044179568 -0.008144327 -0.006200711
50 1 94 57 83 -1.426205 -0.00814433 0.0328581307 0.0045786342
60 1 62 75 93 -1.817717 -0.00620071 0.0045786342 0.0330108329
97 1 49 57 86
Standard Errors
16.355 0.210 0.181 0.182
SS Residual MS Residual
8742.913 546.432

LINEST()
0.583 -0.567 -0.064 44.980
0.182 0.181 0.210 16.355
Y X(1) X(2)
10 1 11 X(2) = X(1) * 3 + 8
20 4 20
30 8 32
40 7 29
50 9 35

LINEST() from Excel 2002


-1.000 7.439 12.252
0 0 0
0.843 8.847 #N/A
5.388 2 #N/A
843.458 156.542 #N/A
Y X(1) X(2)
1 2 1 X(2) = X(1) -1
2 4 3
3 5 4
4 7 6
5 8 7

LINEST() from Excel 2002


#NUM! #NUM! #NUM!
#NUM! #NUM! #NUM!
#NUM! #NUM! #NUM!
#NUM! #NUM! #NUM!
#NUM! #NUM! #NUM!
Y X(1) X(2)
10 1 11 X(2) = X(1) * 3 + 8
20 4 20
30 8 32
40 7 29
50 9 35

LINEST() from Excel 2010


### ### ###
### ### ###
0.853 8.825 #N/A
5.788 2 #N/A
901.684 155.775 #N/A
Y X(1) X(2)
1 2 1 X(2) = X(1) -1
2 4 3
3 5 4
4 7 6
5 8 7

LINEST() from Excel 2010


### ### ###
### ### ###
0.988 0.241 #N/A
84.040 2 #N/A
9.781 0.116 #N/A
Y X(1) X(2) X(3)
1 2 4 6 X(2) = X(1) * 2
2 4 8 48
3 5 10 13
4 7 14 27
5 8 16 14

X(1) X(2) X(3)


X(1) 1
X(2) 1 1
X(3) 0.053013 0.053013 1

Y X(1) X(2) X(3)


10 1 6 7 X(3) = X(1) + X(2)
20 4 48 52
30 8 13 21
40 7 27 34
50 9 14 23

X(1) X(2) X(3)


X(1) 1 =CORREL(B16:B20+C16:C20,D16:D20) 1
X(2) -0.043299 1
X(3) 0.152198 0.980833 1 =CORREL(C16:C20,D16:D20-B16:B20) 1
Y X1 X2 X3
66 76 44 19 =LINEST(A2:A21,B2:D21,TRUE,TRUE)
99 41 -4 85 0.583 -0.567 -0.064 44.980
96 29 20 105 0.182 0.181 0.210 16.355
74 27 -1 58 0.595 23.376 #N/A #N/A
38 76 74 41 7.851 16 #N/A #N/A
26 10 14 9 12870.037 8742.913 #N/A #N/A
20 10 92 58
90 31 46 100 =LINEST(A2:A21,B2:D21,FALSE,TRUE)
13 45 83 31 0.888 -0.327 0.171 0.000
13 36 34 51 0.169 0.187 0.226 #N/A
21 16 72 54 0.813 27.521 #N/A #N/A
91 32 -3 28 24.593 17 #N/A #N/A
40 75 44 82 55879.198 12875.802 #N/A #N/A
8 87 77 44
54 67 46 72
4 29 86 4
11 78 35 49
50 94 57 83
60 62 75 93
97 49 57 86
Y X0 X1 X2 X3 SSCP (X'X)
66 1 76 44 19 =LINEST(A2:A21,C2:D21,TRUE,TRUE) 20 970 948 1152
99 1 41 -4 85 0.583 -0.567 -0.064 44.980 970 60254 48964 57939
96 1 29 20 105 0.182 0.181 0.210 16.355 948 48964 62568 52720
74 1 27 -1 58 0.595 23.376 #N/A #N/A 1152 57939 52720 83558
38 1 76 74 41 7.851 16 #N/A #N/A
26 1 10 14 9 12870.037 8742.913 #N/A #N/A MINVERSE(SSCP)
20 1 10 92 58 0.490 -0.003 -0.003 -0.003
90 1 31 46 100 -0.003 0.000 0.000 0.000
13 1 45 83 31 Using Matrix Functions -0.003 0.000 0.000 0.000
13 1 36 34 51 44.980 -0.064 -0.567 0.583 -0.003 0.000 0.000 0.000
21 1 16 72 54 16.355 0.210 0.181 0.182
91 1 32 -3 28 0.595 23.376 MINVERSE(SSCP)*MSE
40 1 75 44 82 7.851 16 267.500 -1.400 -1.426 -1.818
8 1 87 77 44 12870.037 8742.913 -1.400 0.044 -0.008 -0.006
54 1 67 46 72 -1.426 -0.008 0.033 0.005
4 1 29 86 4 -1.818 -0.006 0.005 0.033
11 1 78 35 49 =DEVSQ(L21:L40) =DEVSQ(M21:M40)
50 1 94 57 83
60 1 62 75 93 Predictions Deviations
97 1 49 57 86 =CORREL(A2:A21,L21:L40) 26.225 39.775
Multiple R: 0.772 94.138 4.862
21612.950 =DEVSQ(A2:A21) R2 0.595 92.952 3.048
77.605 -3.605
22.032 15.968
41.644 -15.644
25.966 -5.966
75.169 14.831
13.092 -0.092
53.105 -40.105
Y X1 X2 X3 SSCP (X'X)
66 76 44 19 =LINEST(A2:A21,B2:D21,FALSE,TRUE) 60254 48964 57939
99 41 -4 85 0.888 -0.327 0.171 0.000 48964 62568 52720
96 29 20 105 0.169 0.187 0.226 #N/A 57939 52720 83558
74 27 -1 58 0.813 27.521 #N/A #N/A
38 76 74 41 24.593 17 #N/A #N/A
26 10 14 9 55879.198 12875.802 #N/A #N/A MINVERSE(SSCP)
20 10 92 58 0.00007 -0.00003 -0.00003
90 31 46 100 -0.00003 0.00005 -0.00001
13 45 83 31 Using Matrix Functions -0.00003 -0.00001 0.00004
13 36 34 51 0.171 -0.327 0.888
21 16 72 54 0.233 0.193 0.174
91 32 -3 28 0.813 27.521 MINVERSE(SSCP)*MSE
40 75 44 82 24.593 17 0.054 -0.023 -0.023 0.000
8 87 77 44 55879.198 12875.802 -0.023 0.037 -0.008 0.000
54 67 46 72 -0.023 -0.008 0.030 0.000
4 29 86 4 0.000 0.000 0.000 0.000
11 78 35 49 =SUMSQ(L21:L40) =SUMSQ(M21:M40)
50 94 57 83
60 62 75 93 Predictions Deviations
97 49 57 86 =CORREL(A2:A21,L21:L40) 15.488 50.512
Multiple R: 0.684 83.827 15.173
R2 0.468 91.686 4.314
56.467 17.533
25.215 12.785
5.125 20.875
23.130 -3.130
79.081 10.919
8.082 4.918
40.338 -27.338
Y X1 X2 X3 =LINEST(A2:A21,B2:D21,FALSE,TRUE)
75 74 48 9 0.68995702 -0.145991 0.1992564 0
95 40 -3 83 0.218612 0.241772 0.2946844 #N/A
90 29 20 104 -0.0912216 35.89888 #N/A #N/A Excel 2002
74 27 0 54 -0.47371 17 #N/A #N/A
42 76 75 39 -1831.4524 21908.402 #N/A #N/A
33 9 16 5
23 10 92 58 =LINEST(A2:A21,B2:D21,FALSE,TRUE)
86 30 47 98 0.68995702 -0.145991 0.1992564 0
18 45 83 30 0.218612 0.241772 0.2946844 #N/A
11 37 31 57 0.67873888 35.89888 #N/A #N/A Excel 2010
23 16 72 55 11.9721518 17 #N/A #N/A
98 30 1 16 46286.5976 21908.402 #N/A #N/A
33 76 42 88
8 88 76 48
51 68 46 73 "R2" -0.091222
15 28 88 0
8 79 32 56
45 94 56 87
56 62 75 95
97 48 59 80

20076.95 =DEVSQ(A2:A21) -1831.452 =A23-N23

68195 =SUMSQ(A2:A21) 46286.598 =A25-N23


Predicted Residual
13.947 61.053
65.675 29.325
74.614 15.386
42.638 31.362
31.102 10.898
2.907 30.093
28.579 -5.579
66.732 19.268
17.548 0.452
42.174 -31.174
30.624 -7.624
16.871 81.129
69.728 -36.728
39.557 -31.557
57.201 -6.201
-7.268 22.268
49.707 -41.707
70.581 -25.581
66.950 -10.950
56.147 40.853

46286.598 21908.402

=SUMSQ(M2:M21) =SUMSQ(N2:N21)
X Y Ŷ Y-Ŷ
75 74 49.3 24.7 100
95 40 62.5 -22.5
90
90 29 59.2 -30.2
74 27 48.7 -21.7 80
42 76 27.6 48.4
70
33 9 21.7 -12.7
23 10 15.1 -5.1 60 f(x) = 0.657995454212186 x
86 30 56.6 -26.6 R² = 0.490409129013872
50
18 45 11.8 33.2
11 37 7.2 29.8 40
23 16 15.1 0.9
30
98 30 64.5 -34.5
33 76 21.7 54.3 20
8 88 5.3 82.7 10
51 68 33.6 34.4
15 28 9.9 18.1 0
8 79 5.3 73.7 0 20 40 60 80 100 120
45 94 29.6 64.4
56 62 36.8 25.2
97 48 63.8 -15.8
=LINEST(B2:B21,A2:A21,FALSE,TRUE)
=DEVSQ(B2:B21) =SUMSQ(D2:D21) 0.658 0
13548.2 30680.4 0.154 #N/A
0.490 40.184
18.285 19
29525.572 30680.428
-17132.228 =B24-D24

-1.265 =K2/B24

30680.4 =SUMSQ(D2:D21)

60206.0 =SUMSQ(B2:B21)

29525.6 =K14-K12

100 120 0.490 =K16/K14


Treatment Patient Score Pt1 Pt2 Tx Tx Pt1 Tx Pt2 LINEST for Score by Main Effects and Interaction
Medical Inpatient 89 1 0 1 1 0 12.514 -5.319 -4.014
Medical Inpatient 84 1 0 1 1 0 4.066 3.838 2.741
Medical Inpatient 86 1 0 1 1 0 0.582 11.395 #N/A
Medical Outpatient 123 0 1 1 0 1 3.346 12.000 #N/A
Medical Outpatient 99 0 1 1 0 1 2171.917 1558.083 #N/A
Medical Outpatient 117 0 1 1 0 1
Medical Short Stay 84 -1 -1 1 -1 -1 LINEST for Main Effects
Medical Short Stay 109 -1 -1 1 -1 -1 -5.214 4.474 -7.102
Medical Short Stay 87 -1 -1 1 -1 -1 3.371 5.011 4.745
Surgical Inpatient 103 1 0 -1 -1 0 0.247 14.165 #N/A
Surgical Inpatient 100 1 0 -1 -1 0 1.530 14.000 #N/A
Surgical Inpatient 112 1 0 -1 -1 0 920.958 2809.042 #N/A
Surgical Outpatient 100 0 1 -1 0 -1
Surgical Outpatient 92 0 1 -1 0 -1 LINEST for Treatment
Surgical Short Stay 93 -1 -1 -1 1 1 -5.111 102.667
Surgical Short Stay 126 -1 -1 -1 1 1 3.364 3.364
Surgical Short Stay 127 -1 -1 -1 1 1 0.126 14.274
Surgical Short Stay 117 -1 -1 -1 1 1 2.308 16.000
470.222 3259.778

Source Prop of R2 SS
Treatment 0.129 479.948
Patient Status 0.121 450.736
Interaction 0.335 1250.959
Residual 0.418 1558.083
e by Main Effects and Interaction
2.931 -5.903 101.569
4.066 3.838 2.741
#N/A #N/A #N/A
#N/A #N/A #N/A
#N/A #N/A #N/A

in Effects
102.769
3.371
#N/A
#N/A
#N/A

LINEST for Patient Status


3.530 -7.003 102.670
5.199 4.959 3.523
0.118 14.808 #N/A
1.006 15.000 #N/A
441.010 3288.990 #N/A

df MS F
1 479.948 3.696
2 225.368 1.736
2 625.479 4.817
12 129.840
Treatment Patient Score PA1 PA2 Sex Sex PA1 Sex PA2 LINEST for Score by Main Effects and Interac
Medical Inpatient 89 1 0 1 1 0 12.514 -5.319 -4.014
Medical Inpatient 84 1 0 1 1 0 4.066 3.838 2.741
Medical Inpatient 86 1 0 1 1 0 0.582 11.395 #N/A
Medical Outpatient 123 0 1 1 0 1 3.346 12.000 #N/A
Medical Outpatient 99 0 1 1 0 1 2171.917 1558.083 #N/A
Medical Outpatient 117 0 1 1 0 1
Medical Short Stay 84 -1 -1 1 -1 -1 LINEST for Main Effects
Medical Short Stay 109 -1 -1 1 -1 -1 -5.214 4.474 -7.102
Medical Short Stay 87 -1 -1 1 -1 -1 3.371 5.011 4.745
Surgical Inpatient 103 1 0 -1 -1 0 0.247 14.165 #N/A
Surgical Inpatient 100 1 0 -1 -1 0 1.530 14.000 #N/A
Surgical Inpatient 112 1 0 -1 -1 0 920.958 2809.042 #N/A
Surgical Outpatient 100 0 1 -1 0 -1
Surgical Outpatient 92 0 1 -1 0 -1 LINEST for Sex
Surgical Short Stay 93 -1 -1 -1 1 1 -5.111 102.667
Surgical Short Stay 126 -1 -1 -1 1 1 3.364 3.364
Surgical Short Stay 127 -1 -1 -1 1 1 0.126 14.274
Surgical Short Stay 117 -1 -1 -1 1 1 2.308 16.000
470.222 3259.778

Source Prop of R2 SS
Sex 0.126 470.222
Pol Affiliation 0.121 450.736
Interaction 0.335 1250.959
Residual 0.418 1558.083
e by Main Effects and Interaction
2.931 -5.903 101.569
4.066 3.838 2.741
#N/A #N/A #N/A
#N/A #N/A #N/A
#N/A #N/A #N/A

in Effects
102.769
3.371
#N/A
#N/A
#N/A

LINEST for Political Affiliation


3.530 -7.003 102.670
5.199 4.959 3.523
0.118 14.808 #N/A
1.006 15.000 #N/A
441.010 3288.990 #N/A

df MS F
1 470.222 3.622
2 225.368 1.736
2 625.479 4.817
12 129.840
Treatment Patient Score Sex P1 P2 Tx Pt1 Tx Pt2 LINEST for Score by Main Effects and Interaction
Medical Inpatient 89 1 1 0 1 0 12.514 -5.319 2.931
Medical Inpatient 84 1 1 0 1 0 4.066 3.838 4.066
Medical Inpatient 86 1 1 0 1 0 0.582 11.395 #N/A
Medical Outpatient 123 1 0 1 0 1 3.346 12.000 #N/A
Medical Outpatient 99 1 0 1 0 1 2171.917 1558.083 #N/A
Medical Outpatient 117 1 0 1 0 1
Medical Short Stay 84 1 -1 -1 -1 -1 LINEST for Main Effects
Medical Short Stay 109 1 -1 -1 -1 -1 4.474 -7.102 -5.214
Medical Short Stay 87 1 -1 -1 -1 -1 5.011 4.745 3.371
Surgical Inpatient 103 -1 1 0 -1 0 0.247 14.165 #N/A
Surgical Inpatient 100 -1 1 0 -1 0 1.530 14.000 #N/A
Surgical Inpatient 112 -1 1 0 -1 0 920.958 2809.042 #N/A
Surgical Outpatient 100 -1 0 1 0 -1
Surgical Outpatient 92 -1 0 1 0 -1 LINEST for Sex
Surgical Short Stay 93 -1 -1 -1 1 1 -5.111 102.667
Surgical Short Stay 126 -1 -1 -1 1 1 3.364 3.364
Surgical Short Stay 127 -1 -1 -1 1 1 0.126 14.274
Surgical Short Stay 117 -1 -1 -1 1 1 2.308 16.000
470.222 3259.778

Source Prop of R2 SS
Sex 0.126 470.222
Pol Affiliation 0.121 450.736
Interaction 0.335 1250.959
Residual 0.418 1558.083
e by Main Effects and Interaction
-5.903 -4.014 101.569
3.838 2.741 2.741
#N/A #N/A #N/A
#N/A #N/A #N/A
#N/A #N/A #N/A

n Effects
102.769
3.371
#N/A
#N/A
#N/A

LINEST for Political Affiliation


3.530 -7.003 102.670
5.199 4.959 3.523
0.118 14.808 #N/A
1.006 15.000 #N/A
441.010 3288.990 #N/A

df MS F
1 470.222 3.622
2 225.368 1.736
2 625.479 4.817
12 129.840

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy