Advanced Biostatistics LM
Advanced Biostatistics LM
Statistics: science
of drawing conclusions from data
10/22/23
3
10/22/23
4
10/22/23
5
10/22/23
Chance
6
10/22/23
Chance
7
8
10/22/23
10
10/22/23
11
10/22/23
12
10/22/23
13
10/22/23
14
10/22/23
Statistical testing
15
Group Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
Ration
suppl 194.9333 46.86421 4.16 0.000 101.1244 288.7422
_cons 799.3667 33.138 24.12 0.000 733.0337 865.6996
10/22/23
Hypothesis testing
18
10/22/23
Hypothesis testing
19
10/22/23
Hypothesis testing
20
Analysis of continuous data:
Linear Regression
21
Learning outcomes
Identify if the data is analyzed by
Linear regression
Construct a linear regression model
Interpret the linear regression
coefficients from both technical and
causal perspectives
Assess the fitness of linear
regression model
10/22/23
Analysis of continous variables:
Linear regression
22
10/22/23
25
10/22/23
26
10/22/23
27 10/22/23
y = 3x + 2 baseline prediction = 4
28
SST=(mean –
observed)^2
SST = 24
SSE=SUM(predicted
– observed )^2
SSM = 18
R^2 = 1 –SSM/SST
RMS=SSM/N^1/2
10/22/23
Assumptions
29
For analysis:
Linearity
Normal distribution of the outcome
variable
For inference
Normality of residuals
Homeoscedasticity
10/22/23
Simple Linear Regression: carcass price
30
10/22/23
10/22/23
Regression In Stata:
32
Source SS df MS Number of obs = 10
F( 1, 8) = 7.99
Model 34.1342349 1 34.1342349 Prob > F = 0.0223
Residual 34.1867667 8 4.27334584 R-squared = 0.4996
Adj R-squared = 0.4371
Total 68.3210017 9 7.59122241 Root MSE = 2.0672
P = 45.55915 -.366877*number
10/22/23
Regression
33
10/22/23
34
10/22/23
Multivariable regression : relations among t-test,
ANOVA and linear regression
35
10/22/23
36
Questions to be answered:
Does supplementation have significant
effect on the weight gain?
Is growth significantly different among
breeds?
Is the effect of the supplement different
among breeds?
10/22/23
Source SS df MS Number of obs = 24
F( 7, 16) = 40.84
Model 11114.625 7 1587.80357 Prob > F = 0.0000
37 Residual 622 16 38.875 R-squared = 0.9470
Adj R-squared = 0.9238
Total 11736.625 23 510.288043 Root MSE = 6.235
breed
nh 45 5.090841 8.84 0.000 34.2079 55.7921
lw 54 5.090841 10.61 0.000 43.2079 64.7921
p 37 5.090841 7.27 0.000 26.2079 47.7921
ration
s 21 5.090841 4.13 0.001 10.2079 31.7921
breed#ration
nh#s -4 7.199537 -0.56 0.586 -19.26234 11.26234
lw#s -5 7.199537 -0.69 0.497 -20.26234 10.26234
p#s -4 7.199537 -0.56 0.586 -19.26234 11.26234
breed
nh 43 3.361612 12.79 0.000 35.96406 50.03594
lw 51.5 3.361612 15.32 0.000 44.46406 58.53594
p 35 3.361612 10.41 0.000 27.96406 42.03594
ration
s 17.75 2.377019 7.47 0.000 12.77484 22.72516
_cons 201.625 2.657588 75.87 0.000 196.0626 207.1874
10/22/23
39
10/22/23
40
10/22/23
41
10/22/23
43
10/22/23
44
10/22/23
45
10/22/23
46
Source SS df MS Number of obs = 308
F( 7, 300) = 78.06
Model 6.35654316 7 .908077595 Prob > F = 0.0000
Residual 3.48991243 300 .011633041 R-squared = 0.6456
Adj R-squared = 0.6373
Total 9.8464556 307 .032073145 Root MSE = .10786
10/22/23
47
mei 1.0000
co2 -0.1529 1.0000
ch4 -0.1056 0.8723 1.0000
n2o -0.1624 0.9811 0.8944 1.0000
cfc11 0.0882 0.4013 0.7135 0.4122 1.0000
cfc12 -0.0398 0.8232 0.9582 0.8393 0.8314 1.0000
tsi -0.0768 0.0179 0.1463 0.0399 0.2846 0.1893 1.0000
aerosols 0.3524 -0.3693 -0.2904 -0.3535 -0.0323 -0.2438 0.0832
temp 0.1353 0.7485 0.6997 0.7432 0.3801 0.6889 0.1822
10/22/23
48
10/22/23
49
10/22/23
50
10/22/23
51
10/22/23
52
10/22/23
53
10/22/23
54
10/22/23
55
10/22/23
56
10/22/23