Professional Documents
Culture Documents
---------------------------------------------
name: <unnamed>
log: C:\Users\JAREDSAM\Documents\1st hospital clinic data analysis.log
log type: text
opened on: 4 Nov 2021, 23:59:54
. *question 1
. *question 2
. *question 3
. *question 4
. *question 5
. sum platelets, d
platelets
-------------------------------------------------------------
Percentiles Smallest
1% 51000 25100
5% 130000 47000
10% 153000 51000 Obs 299
25% 212000 62000 Sum of Wgt. 299
. *question 6
. tabulate platelets
. *question 7
. *question 7
. *question 8
. sum student
. *question 9
. sum student, d
student
-------------------------------------------------------------
Percentiles Smallest
1% 728.5714 358.5714
5% 2063.158 573.1707
10% 2471.428 728.5714 Obs 299
25% 3233.333 1033.333 Sum of Wgt. 299
. *question 10
. tabulate student
. *question 11
. count if creatinine_phosphokinase>1000
36
. *qustion 12
. *question 13
. *question 13
+----------+
| DEATH_~T |
|----------|
3. | 1 |
6. | 1 |
8. | 1 |
10. | 1 |
11. | 1 |
|----------|
12. | 1 |
23. | 1 |
26. | 1 |
28. | 1 |
30. | 1 |
|----------|
41. | 1 |
42. | 1 |
43. | 1 |
46. | 1 |
48. | 1 |
|----------|
55. | 1 |
57. | 0 |
58. | 0 |
59. | 1 |
60. | 1 |
|----------|
63. | 0 |
66. | 1 |
68. | 1 |
71. | 0 |
72. | 0 |
|----------|
73. | 1 |
74. | 0 |
75. | 1 |
76. | 1 |
77. | 0 |
|----------|
79. | 0 |
82. | 0 |
91. | 0 |
103. | 0 |
104. | 0 |
|----------|
106. | 1 |
109. | 0 |
110. | 0 |
111. | 1 |
112. | 0 |
|----------|
121. | 0 |
129. | 0 |
131. | 0 |
134. | 0 |
135. | 0 |
|----------|
145. | 1 |
146. | 0 |
147. | 0 |
153. | 0 |
154. | 0 |
|----------|
158. | 0 |
160. | 0 |
162. | 0 |
163. | 0 |
167. | 0 |
|----------|
171. | 0 |
172. | 0 |
173. | 0 |
175. | 0 |
176. | 0 |
|----------|
177. | 0 |
180. | 0 |
182. | 1 |
183. | 1 |
185. | 1 |
|----------|
194. | 0 |
200. | 0 |
204. | 0 |
205. | 0 |
211. | 0 |
|----------|
212. | 0 |
213. | 0 |
222. | 0 |
223. | 0 |
227. | 0 |
|----------|
232. | 0 |
234. | 0 |
235. | 0 |
240. | 0 |
242. | 0 |
|----------|
243. | 0 |
249. | 0 |
256. | 0 |
260. | 0 |
266. | 0 |
|----------|
267. | 1 |
271. | 0 |
275. | 0 |
282. | 0 |
283. | 0 |
|----------|
284. | 0 |
293. | 0 |
294. | 0 |
295. | 0 |
298. | 0 |
|----------|
299. | 0 |
+----------+
. *question 14
. sort high_blood_pressure
. list in 1
+-----------------------------------------------------------------------------------------------
-------------------------------+
1. | age | anaemia | creati~e | diabetes | ejecti~n | high_b~e | platel~s | serum_~e |
serum_~m | sex | smoking | time | DEATH_~T |
| 53 | 0 | 196 | 0 | 60 | 0 | 220000 | .7 |
133 | 1 | 1 | 134 | 0 |
|-----------------------------------------------------------------------------------------------
-------------------------------|
| student
|
| 4150.943
|
+-----------------------------------------------------------------------------------------------
-------------------------------+
. sort diabetes
. list in 1
+-----------------------------------------------------------------------------------------------
-------------------------------+
1. | age | anaemia | creati~e | diabetes | ejecti~n | high_b~e | platel~s | serum_~e |
serum_~m | sex | smoking | time | DEATH_~T |
| 78 | 1 | 64 | 0 | 40 | 0 | 277000 | .7 |
137 | 1 | 1 | 187 | 0 |
|-----------------------------------------------------------------------------------------------
-------------------------------|
| student
|
| 3551.282
|
+-----------------------------------------------------------------------------------------------
-------------------------------+
. list diabetes diabetes in 1
+---------------------+
| diabetes diabetes |
|---------------------|
1. | 0 0 |
+---------------------+
. list high_blood_pressure in 1
+----------+
| high_b~e |
|----------|
1. | 0 |
+----------+
+----------+
| high_b~e |
|----------|
1. | 0 |
2. | 1 |
3. | 0 |
4. | 0 |
5. | 1 |
|----------|
6. | 0 |
7. | 0 |
8. | 0 |
9. | 1 |
10. | 0 |
+----------+
. *question 15
. table sex, c(mean age mean anaemia mean diabetes mean high_blood_pressure mean smoking mean
student)
too many stats()
r(103);
. table sex, c(mean age mean anaemia mean diabetes mean high_blood_pressure)
--------------------------------------------------------------------------
sex | mean(age) mean(anaemia) mean(diabetes) mean(high_b~e)
----------+---------------------------------------------------------------
0 | 59.777781 .4952381 .52380955 .41904762
1 | 61.4055 .39690721 .36082473 .31443298
--------------------------------------------------------------------------
. table sex, c(mean age mean anaemia mean diabetes mean high_blood_pressure mean smoking mean
student)
too many stats()
r(103);
.
. . table sex, c(mean age mean anaemia mean diabetes mean high_blood_pressure mean smoking )
--------------------------------------------------------------------------------
sex | mean(age) mean(anae~a) mean(diab~s) mean(high~e) mean(smok~g)
----------+---------------------------------------------------------------------
0 | 59.777781 .4952381 .52380955 .41904762 .03809524
1 | 61.4055 .39690721 .36082473 .31443298 .4742268
--------------------------------------------------------------------------------
. *qustion 15
. *question 16
-------------------------------------------------------------------------------------
age | Coef. Std. Err. t P>|t| [95% Conf. Interval]
--------------------+----------------------------------------------------------------
diabetes | -2.279216 1.392885 -1.64 0.103 -5.020505 .4620726
platelets | -6.41e-06 7.06e-06 -0.91 0.365 -.0000203 7.49e-06
high_blood_pressure | 2.319104 1.435174 1.62 0.107 -.5054117 5.14362
ejection_fraction | .061474 .0580562 1.06 0.291 -.0527844 .1757324
_cons | 60.31909 2.918071 20.67 0.000 54.57613 66.06205
-------------------------------------------------------------------------------------
. *question 17
. display 9+2
11
. display 3*4
12
. display 16/2
8
. display 5-2
3
. *Nb
. *question 18
. predict yhat
(option xb assumed; fitted values)
. predict uhat
(option xb assumed; fitted values)
. prdict student,participants
command prdict is unrecognized
r(199);
. tabulate mutua
. log close
name: <unnamed>
log: C:\Users\JAREDSAM\Documents\1st hospital clinic data analysis.log
log type: text
closed on: 5 Nov 2021, 02:08:08
------------------------------------------------------------------------------------------------
---------------------------------------------