encuestpregunta 11

24
PREGUNTA 11 > f=table(datos) > f datos 1 2 3 24 64 12 > n=sum(f) > n [1] 100 > h=(f/n)*100 > h datos 1 2 3 24 64 12 > F=cumsum(f) > H=cumsum(h) > cbind(f,h,F,H) f h F H 1 24 24 24 24 2 64 64 88 88 3 12 12 100 100 > boxplot(datos) > boxplot(datos)

Upload: hermesortiz1508

Post on 06-Jul-2015

19 views

Category:

Education


0 download

DESCRIPTION

Encuesta parte II TIC Administrativos

TRANSCRIPT

Page 1: EncuestPregunta 11

PREGUNTA 11

> f=table(datos)

> f

datos

1 2 3

24 64 12

> n=sum(f)

> n

[1] 100

> h=(f/n)*100

> h

datos

1 2 3

24 64 12

> F=cumsum(f)

> H=cumsum(h)

> cbind(f,h,F,H)

f h F H

1 24 24 24 24

2 64 64 88 88

3 12 12 100 100

> boxplot(datos)

> boxplot(datos)

Page 2: EncuestPregunta 11

> mean(datos)

V1

1.88

> summary(datos)

V1

Min. :1.00

1st Qu.:2.00

Median :2.00

Mean :1.88

3rd Qu.:2.00

Max. :3.00

Page 3: EncuestPregunta 11

> f=table(f)

Error en table(f) : objeto 'f' no encontrado

> f=table(datos)

> f

datos

1si 2no 3muypocos

24 64 12

> n=sum(f)

> n

[1] 100

> h=(f/n)*100

> h

datos

1si 2no 3muypocos

24 64 12

> F=cumsum(f)

> H=cumsum(h)

Page 4: EncuestPregunta 11

> cbind(f,h,F,H)

f h F H

1si 24 24 24 24

2no 64 64 88 88

3muypocos 12 12 100 100

> barplot(f,col=c(1,2),names.arg=c(""),main="DIAGRAMA DE

BARRAS",ylab="Frecuencia absoluta",xlab="")

PREGUNTA 12

> f=table(datos)

> f

datos

Page 5: EncuestPregunta 11

1 2 3

32 56 12

> n=sum(f)

> n

[1] 100

> h=(f/n)*100

> h

datos

1 2 3

32 56 12

> F=cumsum(f)

> F=cumsum(f)

> H=cumsum(h)

> cbind(f,h,F,H)

f h F H

1 32 32 32 32

2 56 56 88 88

3 12 12 100 100

> mean(datos)

V1

1.8

> boxplot(datos)

> summary(datos)

Page 6: EncuestPregunta 11

V1

Min. :1.0

1st Qu.:1.0

Median :2.0

Mean :1.8

3rd Qu.:2.0

Max. :3.0

> f=table(datos)

> f

datos

1jornadacompleta 2mediajornada 3dosacuatrohoras

32 56 12

> n=sum(f)

Page 7: EncuestPregunta 11

> n

[1] 100

> h=(f/n)*100

> h

datos

1jornadacompleta 2mediajornada 3dosacuatrohoras

32 56 12

> F=cumsum(f)

> H=cumsum(h)

> cbind(f,h,F,H)

f h F H

1jornadacompleta 32 32 32 32

2mediajornada 56 56 88 88

3dosacuatrohoras 12 12 100 100

> barplot(f,col=c(1,2,3),names.arg=c(""),main="DIAGRAMA DE

BARRAS",ylab="Tiempo",xlab="")

Page 8: EncuestPregunta 11

PREGUNTA 13

> f=table(datos)

> f

datos

1buena 2mala 3regular

60 32 8

> n=sum(f)

> n

[1] 100

> h=(f/n)*100

> h

datos

1buena 2mala 3regular

60 32 8

> F=cumsum(f)

> H=cumsum(h)

> cbind(f,h,F,H)

f h F H

1buena 60 60 60 60

2mala 32 32 92 92

3regular 8 8 100 100

Page 9: EncuestPregunta 11

> barplot(f,col=c(1,2,3),names.arg=c(""),main="DIAGRAMA DE

BARRAS",ylab="Relaciones Administrativas",xlab="")

> f=table(datos)

> f

datos

1 2 3

60 32 8

> n=sum(f)

> n

Page 10: EncuestPregunta 11

[1] 100

> h=(f/n)*100

> h

datos

1 2 3

60 32 8

> F=cumsum(f)

> H=cumsum(h)

> cbind(f,h,F,H)

f h F H

1 60 60 60 60

2 32 32 92 92

3 8 8 100 100

> mean(datos)

V1

1.48

> boxplot(datos)

> summary(datos)

V1

Min. :1.00

1st Qu.:1.00

Median :1.00

Mean :1.48

Page 11: EncuestPregunta 11

3rd Qu.:2.00

Max. :3.00

PREGUNTA 14

> f=table(datos)

> f

datos

1 2

75 23

> n=sum(f)

> n

[1] 98

> h=(f/n)*100

Page 12: EncuestPregunta 11

> h

datos

1 2

76.53061 23.46939

> F=cumsum(f)

> H=cumsum(h)

> cbind(f,h,F,H)

f h F H

1 75 76.53061 75 76.53061

2 23 23.46939 98 100.00000

> mean(datos)

V1

1.234694

> boxplot(datos)

> summary(datos)

V1

Min. :1.000

1st Qu.:1.000

Median :1.000

Mean :1.235

3rd Qu.:1.000

Max. :2.000

Page 13: EncuestPregunta 11

> f=table(datos)

> f

datos

1si 2no

76 23

> n=sum(f)

> n

[1] 99

> h=(f/n)*100

> h

datos

1si 2no

76.76768 23.23232

> F=cumsum(f)

Page 14: EncuestPregunta 11

> H=cumsum(h)

> cbind(f,h,F,H)

f h F H

1si 76 76.76768 76 76.76768

2no 23 23.23232 99 100.00000

> barplot(f,col=c(1,2),names.arg=c(""),main="DIAGRAMA DE

BARRAS",ylab="Infraestructura",xlab="")

PREGUNTA 15

> f=table(datos)

> f

datos

Page 15: EncuestPregunta 11

1 2 3 4 5 6

20 24 7 12 27 10

> n=sum(f)

> n

[1] 100

> h=(f/n)*100

> h

datos

1 2 3 4 5 6

20 24 7 12 27 10

> F=cumsum(f)

> H=cumsum(h)

> cbind(f,h,F,H)

f h F H

1 20 20 20 20

2 24 24 44 44

3 7 7 51 51

4 12 12 63 63

5 27 27 90 90

6 10 10 100 100

> mean(datos)

V1

3.32

Page 16: EncuestPregunta 11

> boxplot(datos)

> summary(datos)

V1

Min. :1.00

1st Qu.:2.00

Median :3.00

Mean :3.32

3rd Qu.:5.00

Max. :6.00

> f=table(datos)

> f

datos

1Optimizareltráfico 2Ampliacióndelosespaciosverdes

20 26

3Disminuirlosnivelesderuido 4Mejoramientodelailuminación

Page 17: EncuestPregunta 11

6 12

5Mejoramientodeltransporté 6Mejoramientoenlasvías

26 10

> n=sum(f)

>

> n

[1] 100

> h=(f/n)*100

> h

datos

1Optimizareltráfico 2Ampliacióndelosespaciosverdes

20 26

3Disminuirlosnivelesderuido 4Mejoramientodelailuminación

6 12

5Mejoramientodeltransporté 6Mejoramientoenlasvías

26 10

> F=cumsum(f)

> H=cumsum(h)

> cbind(f,h,F,H)

f h F H

1Optimizareltráfico 20 20 20 20

2Ampliacióndelosespaciosverdes 26 26 46 46

3Disminuirlosnivelesderuido 6 6 52 52

Page 18: EncuestPregunta 11

4Mejoramientodelailuminación 12 12 64 64

5Mejoramientodeltransporté 26 26 90 90

6Mejoramientoenlasvías 10 10 100 100

> barplot(f,col=c(1,2,3,4,5,6),names.arg=c(""),main="DIAGRAMA DE

BARRAS",ylab="Mejoramiento",xlab="")

PREGUNTA 16

> f=table(datos)

> f

datos

1 2 3 4

21 48 16 15

> n=sum(f)

> h=(f/n)*100

> h

datos

1 2 3 4

Page 19: EncuestPregunta 11

21 48 16 15

> F=cumsum(f)

> H=cumsum(h)

> cbind(f,h,F,H)

f h F H

1 21 21 21 21

2 48 48 69 69

3 16 16 85 85

4 15 15 100 100

> mean(datos)

V1

2.25

> boxplot(datos)

> summary(datos)

V1

Min. :1.00

1st Qu.:2.00

Median :2.00

Mean :2.25

3rd Qu.:3.00

Max. :4.00

Page 20: EncuestPregunta 11

> f=table(datos)

> f

datos

1propia 2arriendo 3familiar 4otro

21 49 16 14

> n=sum(f)

> n

[1] 100

> h=(f/n)*100

> h

datos

1propia 2arriendo 3familiar 4otro

21 49 16 14

> F=cumsum(f)

> H=cumsum(h)

> cbind(f,h,F,H)

Page 21: EncuestPregunta 11

f h F H

1propia 21 21 21 21

2arriendo 49 49 70 70

3familiar 16 16 86 86

4otro 14 14 100 100

>

barplot(f,col=c(1,2,3,4),names.arg=c("porpia,arriendo,familiar,otro"),main="DIA

GRAMA DE BARRAS",ylab="Vivienda",xlab="")

> barplot(f,col=c(1,2,3,4),names.arg=c(""),main="DIAGRAMA DE

BARRAS",ylab="Vivienda",xlab="")

PREGUNTA 17

> f=table(datos)

> f

Page 22: EncuestPregunta 11

datos

1 2 3 4

14 62 16 8

> n=sum(f)

> n

[1] 100

> h=(f/n)*100

> h

datos

1 2 3 4

14 62 16 8

> F=cumsum(f)

> H=cumsum(h)

> cbind(f,h,F,H)

f h F H

1 14 14 14 14

2 62 62 76 76

3 16 16 92 92

4 8 8 100 100

> mean(datos)

V1

2.18

> boxplot(datos)

Page 23: EncuestPregunta 11

> summary(datos)

V1

Min. :1.00

1st Qu.:2.00

Median :2.00

Mean :2.18

3rd Qu.:2.00

Max. :4.00

> f=table(datos)

> f

datos

1uno 2dos 3tres 4cuatro

14 62 16 8

> n=sum(f)

> n

[1] 100

Page 24: EncuestPregunta 11

> h=(f/n)*100

> h

datos

1uno 2dos 3tres 4cuatro

14 62 16 8

> F=cumsum(f)

> H=cumsum(h)

> cbind(f,h,F,H)

f h F H

1uno 14 14 14 14

2dos 62 62 76 76

3tres 16 16 92 92

4cuatro 8 8 100 100

> barplot(f,col=c(1,2,3,4),names.arg=c(""),main="DIAGRAMA DE

BARRAS",ylab="Estratos",xlab="")