You are on page 1of 4

CONS

script

attach(saving)
summary(cons)
sd(cons)
cv<-round(sd(cons)/mean(cons)*100,2)
cv
tabla1<-as.data.frame(table(cons1=factor(cut(cons, breaks = 6))))
tablap
transform(tabla1, FreqAc=cumsum(Freq),
Rel=round(prop.table(Freq),3),
RelAc=round(cumsum(prop.table(Freq)),3))
boxplot(cons, main="Boxplot cons", col = "green")
hist(cons, main = "Distribucion de cons",xlab = "cons",
ylab = "frecuencia", col = "blue",border = "white",
ylim = c(0,300), breaks = 5)

Clase cons1 fi Fi hi Hi
1 (-1.31e+04,-5.83e+03] 1 1 1% 1%
2 (-5.83e+03,1.39e+03] 3 4 3% 4%
3 (1.39e+03,8.61e+03] 60 64 60% 64%
4 (8.61e+03,1.58e+04] 28 92 28% 92%
5 (1.58e+04,2.31e+04] 5 97 5% 97%
6 (2.31e+04,3.03e+04] 3 100 3% 100%
INC

Script
attach(saving)
summary(inc)
sd(inc)
cv<-round(sd(inc)/mean(inc)*100,2)
cv
tabla1<-as.data.frame(table(inc1=factor(cut(inc, breaks = 6))))
tablap
transform(tabla1, FreqAc=cumsum(Freq),
Rel=round(prop.table(Freq),3),
RelAc=round(cumsum(prop.table(Freq)),3))
boxplot(inc, main="Boxplot cons", col = "green")
hist(inc, main = "Distribucion de inc",xlab = "inc",
ylab = "frecuencia", col = "blue",border = "white",
ylim = c(0,300), breaks = 5)

clase inc1 fi Fi hi Hi
1 (719,5,97e+03] 16 16 16% 16%
2 (5,97e+03,1,12e+04] 57 73 57% 73%
3 (1,12e+04,1,64e+04] 18 91 18% 91%
4 (1,64e+04,2,16e+04] 4 95 4% 95%
5 (2,16e+04,2,69e+04] 2 97 2% 97%
6 (2,69e+04,3,21e+04] 3 100 3% 100%
Size

Script

attach(saving)
summary(size)
sd(size)
cv<-round(sd(size)/mean(size)*100,2)
cv
tabla1<-as.data.frame(table(size1=factor(cut(size, breaks = 6))))
tablap
transform(tabla1, FreqAc=cumsum(Freq),
Rel=round(prop.table(Freq),3),
RelAc=round(cumsum(prop.table(Freq)),3))
boxplot(size, main="Boxplot cons", col = "green")
hist(size, main = "Distribucion de inc",xlab = "inc",
ylab = "frecuencia", col = "blue",border = "white",
ylim = c(0,300), breaks = 5)

clase size1 fi Fi hi Hi
1 (1,99,3,33] 26 26 26% 26%
2 (3,33,4,67] 34 60 34% 60%
3 (4,67,6] 34 94 34% 94%
4 (6,7,33] 3 97 3% 97%
5 (7,33,8,67] 1 98 1% 98%
6 (8,67,10] 2 100 2% 100%
Age

attach(saving)
summary(age)
sd(age)
cv<-round(sd(age)/mean(age)*100,2)
cv
tabla1<-as.data.frame(table(age1=factor(cut(age, breaks = 6))))
tablap
transform(tabla1, FreqAc=cumsum(Freq),
Rel=round(prop.table(Freq),3),
RelAc=round(cumsum(prop.table(Freq)),3))
boxplot(age, main="Boxplot cons", col = "green")
hist(age, main = "Distribucion de inc",xlab = "inc",
ylab = "frecuencia", col = "blue",border = "white",
ylim = c(0,100), breaks = 2)

Columna1 age1 fi Fi hi HI
1 (26,30,7] 14 14 14% 14%
2 (30,7,35,3] 23 37 23% 37%
3 (35,3,40] 24 61 24% 61%
4 (40,44,7] 16 77 16% 77%
5 (44,7,49,3] 10 87 10% 87%
6 (49,3,54] 13 100 13% 100%

You might also like