A continuacion se presentan los tipos de variables que conforman el dataset India_menu, el cual contiene informacion nutricional de los menu de MacDonals en India.
Para trabajar comodamente el dataset es necesario conocer si tiene valores ausentes.
| Valores Ausentes | |
|---|---|
| Menu Category | 0 |
| Menu Items | 0 |
| Per Serve Size | 0 |
| Energy (kCal) | 0 |
| Protein (g) | 0 |
| Total fat (g) | 0 |
| Sat Fat (g) | 0 |
| Trans fat (g) | 0 |
| Cholesterols (mg) | 0 |
| Total carbohydrate (g) | 0 |
| Total Sugars (g) | 0 |
| Added Sugars (g) | 0 |
| Sodium (mg) | 1 |
El dataset solo tiene un valor ausente, el cual es conveniente remplazar por alguna medida de tendencia central, ya que si se elimina se pierde informacion de un menu
Se puede observar que la variable Sodio tiene valores muy dispersos, por
lo cual la media no seria una buena permutacion, por lo tanto se
imputara el valor ausente con la mediana.
## Energy (kCal) Protein (g) Total fat (g)
## 244.6354610 7.4935461 9.9917021
## Sat Fat (g) Trans fat (g) Cholesterols (mg)
## 4.9975887 0.6871631 26.3500709
## Total carbohydrate (g) Total Sugars (g) Added Sugars (g)
## 31.1902837 15.4648936 10.3369504
## Sodium (mg)
## 360.5745035
| Energy (kCal) | Protein (g) | Total fat (g) | Sat Fat (g) | Trans fat (g) | Cholesterols (mg) | Total carbohydrate (g) | Total Sugars (g) | Added Sugars (g) | Sodium (mg) | |
|---|---|---|---|---|---|---|---|---|---|---|
| Energy (kCal) | 34430.6 | 1279.1 | 1743.3 | 726.0 | 95.6 | 3543.4 | 3117.9 | 184.3 | 9.6 | 74167.0 |
| Protein (g) | 1279.1 | 69.5 | 75.5 | 28.7 | 10.0 | 247.6 | 71.3 | -37.0 | -38.0 | 3507.5 |
| Total fat (g) | 1743.3 | 75.5 | 106.9 | 42.7 | 10.4 | 220.8 | 114.7 | -35.7 | -41.4 | 4246.3 |
| Sat Fat (g) | 726.0 | 28.7 | 42.7 | 24.0 | -2.4 | 89.6 | 53.1 | -3.9 | -12.2 | 1474.4 |
| Trans fat (g) | 95.6 | 10.0 | 10.4 | -2.4 | 40.0 | -9.5 | -16.1 | -8.2 | -6.1 | 460.5 |
| Cholesterols (mg) | 3543.4 | 247.6 | 220.8 | 89.6 | -9.5 | 2533.5 | 148.1 | -162.5 | -162.2 | 11196.6 |
| Total carbohydrate (g) | 3117.9 | 71.3 | 114.7 | 53.1 | -16.1 | 148.1 | 424.4 | 164.4 | 133.9 | 4823.5 |
| Total Sugars (g) | 184.3 | -37.0 | -35.7 | -3.9 | -8.2 | -162.5 | 164.4 | 246.2 | 204.4 | -2202.6 |
| Added Sugars (g) | 9.6 | -38.0 | -41.4 | -12.2 | -6.1 | -162.2 | 133.9 | 204.4 | 204.0 | -1832.2 |
| Sodium (mg) | 74167.0 | 3507.5 | 4246.3 | 1474.4 | 460.5 | 11196.6 | 4823.5 | -2202.6 | -1832.2 | 222594.6 |
## [1] 7.7715429 7.3972336 21.9474785 15.6891818 4.2764135 15.2760358
## [7] 4.5046205 1.8288603 5.5718160 5.8027904 6.2931401 7.7230411
## [13] 21.3736031 5.8863861 5.2228623 2.1583219 20.5758539 23.6162399
## [19] 46.2521269 10.3707955 3.2446079 5.4359723 11.3800270 12.7118237
## [25] 26.8860505 138.9746455 5.7754968 10.1877938 19.7086324 3.5168925
## [31] 5.8081434 11.1030173 2.8953294 3.8772010 25.8659358 30.0331383
## [37] 9.1198964 4.8233106 22.1671964 7.5097810 41.4516624 23.5749682
## [43] 9.3503205 3.0889663 2.7224732 1.9428674 2.7224732 2.5883933
## [49] 2.5768024 2.0114781 3.4323920 5.0398011 2.5517705 3.7065859
## [55] 5.7923366 3.1903390 4.9892153 7.0595154 1.8710374 3.2900454
## [61] 5.8175449 0.9376713 2.9579467 5.4683625 11.1062542 11.6752933
## [67] 19.4222777 3.1270531 3.1611799 3.2673119 2.4519897 2.4740439
## [73] 2.7214586 2.4225710 2.4364605 2.6635777 2.0564453 1.5268637
## [79] 1.5105067 1.1325324 11.3709766 12.5145410 17.4090307 2.9258488
## [85] 2.9122238 2.6448445 3.4341308 1.6815086 1.6237342 2.5564579
## [91] 0.7267619 9.7457055 0.9592374 1.8840158 0.8400364 1.3598806
## [97] 0.8093031 1.1779626 0.8716910 4.6066292 1.5701683 10.1986951
## [103] 0.7784908 0.6852946 13.4865559 13.3335529 12.6658876 20.5145675
## [109] 32.3102510 36.5677903 19.3017852 60.0654793 14.0092746 1.9855692
## [115] 3.6451558 2.7334059 4.8018042 10.5594874 3.5909358 6.8800857
## [121] 15.5701824 2.4199506 3.9839057 8.5123270 3.1463342 5.8087067
## [127] 12.9950636 1.5565543 1.9863625 1.7557271 3.2094369 3.1199204
## [133] 5.3315273 2.4851339 2.9486534 9.3817330 125.5965899 3.4279587
## [139] 3.2825940 2.1990082 7.6895484