Professional Documents
Culture Documents
Please use the package to use the new (and old) GUI.
Pgina 1
Sem ttulo
Nome. 0.17894737
sexo 0.17894737
ocupa 0.02105263
ocupacode 0.02105263
funcpred 0.02105263
funcpredcod 0.02105263
part2A 0.02105263
part1A 0.01052632
part2D 0.01052632
rea.de.Formao.Principal. 0.00000000
AFP 0.00000000
possuif 0.00000000
tconc 0.00000000
nform 0.00000000
atuaform 0.00000000
estado 0.00000000
profatual 0.00000000
thetaa 0.00000000
thetab 0.00000000
thetac 0.00000000
thetad 0.00000000
nformcatpos 0.00000000
nformcont 0.00000000
part1C 0.00000000
part1D 0.00000000
part1B 0.00000000
part2B 0.00000000
part2C 0.00000000
> marginplot(base[c(1,2)])
> methods(mice)
Warning in .S3methods(generic.function, class, parent.frame()) :
function 'mice' appears not to be S3 generic; found functions that look like S3 methods
[1] mice.impute.2l.norm
mice.impute.2l.pan
mice.impute.2lonly.mean
[4] mice.impute.2lonly.norm mice.impute.2lonly.pmm
mice.impute.cart
[7] mice.impute.fastpmm
mice.impute.lda
mice.impute.logreg
[10] mice.impute.logreg.boot mice.impute.mean
mice.impute.norm
[13] mice.impute.norm.boot
mice.impute.norm.nob
mice.impute.norm.predict
[16] mice.impute.passive
mice.impute.pmm
mice.impute.polr
[19] mice.impute.polyreg
mice.impute.quadratic
mice.impute.rf
[22] mice.impute.ri
mice.impute.sample
mice.mids
[25] mice.theme
see '?methods' for accessing help and source code
> tempData <- mice(base,m=5,maxit=50,meth='pmm',seed=500)
iter
1
1
1
1
1
2
imp variable
1 Nome. sexo
2 Nome. sexo
3 Nome. sexo
4 Nome. sexo
5 Nome. sexo
1 Nome.
Instituio.
Instituio.
Instituio.
Instituio.
Instituio.
publica
publica
publica
publica
publica
ocupa
ocupa
ocupa
ocupa
ocupa
ocupacode
ocupacode
ocupacode
ocupacode
ocupacode
funcpred
funcpred
funcpred
funcpred
funcpred
funcpredcod
funcpredcod
funcpredcod
funcpredcod
funcpredcod
part1A
part1A
part1A
part1A
part1A
part2A
part2A
part2A
part2A
part2A
part2D
part2D
part2D
part2D
part2D
Sem ttulo
3rd Qu.: 1.80620
Max.
: 2.85722
NA's
:1
> fix((base))
Error in fix((base)) : 'fix' requires a name
> fix(base)
> tapply(part1A,base$AFP,mean)
0
1
2
0.6574222
NA 2.4621593
> fix(base)
> describe.by(base$part1A,base$AFP)
Warning: describe.by is deprecated. Please use the describeBy function
group: 0
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 8 0.66 2.62
0.58
0.66 3.89 -2.72 3.66 6.38 -0.11
-1.81 0.92
------------------------------------------------------------------------group: 1
vars n mean sd median trimmed mad
min max range skew kurtosis
se
1
1 50 2.82 1.1
3.66
3.02
0 -0.19 3.66 3.85 -1.04
-0.11 0.16
------------------------------------------------------------------------group: 2
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 37 2.46 1.13
2.75
2.56 1.35 -0.19 3.66 3.85 -0.49
-0.87 0.19
> describe.by(part1A,base$AFP)
Warning: describe.by is deprecated. Please use the describeBy function
group: 0
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 8 0.66 2.62
0.58
0.66 3.89 -2.72 3.66 6.38 -0.11
-1.81 0.92
------------------------------------------------------------------------group: 1
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 49 2.83 1.11
3.66
2.99
0 -0.19 3.66 3.85 -1.05
-0.14 0.16
------------------------------------------------------------------------group: 2
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 37 2.46 1.13
2.75
2.56 1.35 -0.19 3.66 3.85 -0.49
-0.87 0.19
> pairwise.t.test(part1A, base$AFP, p.adj = "holm")
data:
0
1
1 9e-05 2 0.0011 0.1953
> describe.by(part1A,base$AFP)
Warning: describe.by is deprecated. Please use the describeBy function
group: 0
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 8 0.66 2.62
0.58
0.66 3.89 -2.72 3.66 6.38 -0.11
-1.81 0.92
------------------------------------------------------------------------group: 1
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 49 2.83 1.11
3.66
2.99
0 -0.19 3.66 3.85 -1.05
-0.14 0.16
------------------------------------------------------------------------group: 2
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 37 2.46 1.13
2.75
2.56 1.35 -0.19 3.66 3.85 -0.49
-0.87 0.19
Pgina 3
Sem ttulo
0
1
1 9e-05 2 0.0011 0.1953
Sem ttulo
data: base$part1A by base$possuif
t = -0.61841, df = 73.095, p-value = 0.5382
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.7843960 0.4128805
sample estimates:
mean in group 0 mean in group 1
2.431498
2.617256
> tatuaform1A
> describe.by(part1A,base$AFP)
Warning: describe.by is deprecated. Please use the describeBy function
group: 0
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 8 0.66 2.62
0.58
0.66 3.89 -2.72 3.66 6.38 -0.11
-1.81 0.92
------------------------------------------------------------------------group: 1
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 49 2.83 1.11
3.66
2.99
0 -0.19 3.66 3.85 -1.05
-0.14 0.16
------------------------------------------------------------------------group: 2
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 37 2.46 1.13
2.75
2.56 1.35 -0.19 3.66 3.85 -0.49
-0.87 0.19
> pairwise.t.test(part1A, base$AFP, p.adj = "holm")
data:
0
1
1 9e-05 2 0.0011 0.1953
data:
Sem ttulo
0
1
2
1 0.50 2 0.74 0.85 3 0.12 0.85 0.74
0
1
2
1 1.000 2 1.000 1.000 3 0.068 0.184 0.257
0
1
2
1 1.000 2 1.000 1.000 3 0.068 0.221 0.385
> describe.by(part1A,base$nform)
Warning: describe.by is deprecated. Please use the describeBy function
group: 0
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 30 2.2 1.44
2.75
2.39 1.35 -2.72 3.66 6.38 -1.33
2.27 0.26
------------------------------------------------------------------------group: 1
vars n mean
sd median trimmed mad
min max range skew kurtosis se
1
1 22 2.35 1.43
2.75
2.49 1.35 -0.19 3.66 3.85 -0.46
-1.42 0.3
------------------------------------------------------------------------group: 2
vars n mean
sd median trimmed mad
min max range skew kurtosis se
1
1 27 2.5 1.54
2.75
2.75 1.35 -2.72 3.66 6.38 -1.68
2.74 0.3
------------------------------------------------------------------------group: 3
vars n mean
sd median trimmed mad min max range skew kurtosis
se
1
1 15 3.33 0.74
3.66
3.46
0 1.35 3.66 2.31 -1.73
1.46 0.19
> pairwise.t.test(part1A, base$nform, p.adj = "holm")
Pairwise comparisons using t tests with pooled SD
Pgina 6
data:
Sem ttulo
0
1
2
1 1.000 2 1.000 1.000 3 0.068 0.184 0.257
0
1
2
1 1.000 2 1.000 1.000 3 0.068 0.184 0.257
0
1
2
1 1.000 2 1.000 1.000 3 0.068 0.184 0.257
0
1
2
1 1.000 2 1.000 1.000 3 0.068 0.184 0.257
> describe.by(part1A,base$ocupacode)
Warning: describe.by is deprecated. Please use the describeBy function
group: 0
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 39 1.94 1.73
1.91
2.14 2.05 -2.72 3.66 6.38 -0.91
0.3 0.28
------------------------------------------------------------------------group: 1
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 40 2.76 1.01
2.75
2.9 1.35 -0.19 3.66 3.85 -0.85
-0.08 0.16
Pgina 7
Sem ttulo
------------------------------------------------------------------------group: 2
vars n mean
sd median trimmed mad min max range skew kurtosis
se
1
1 13 3.39 0.56
3.66
3.5
0 1.91 3.66 1.75 -1.56
1.06 0.16
> pairwise.t.test(part1A, base$ocupacode, p.adj = "holm")
data:
0
1
1 0.0156 2 0.0031 0.1419
Pgina 8
Sem ttulo
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-1.19164898 0.09160102
sample estimates:
mean in group grad mean in group pos
2.784525
3.334549
> tsexo1B
Pgina 9
Sem ttulo
0
1
2
2.209747 3.024642 3.550576
> describe.by(part1B,base$AFP)
Warning: describe.by is deprecated. Please use the describeBy function
group: 0
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 8 2.21 2.31
3.16
2.21 1.27 -2.44 4.02 6.46 -0.9
-0.75 0.82
------------------------------------------------------------------------group: 1
vars n mean sd median trimmed mad
min max range skew kurtosis
se
1
1 50 3.02 1.2
3.16
3.23 1.27 -0.52 4.02 4.54 -1.21
0.8 0.17
------------------------------------------------------------------------group: 2
vars n mean
sd median trimmed mad min max range skew kurtosis
se
1
1 37 3.55 0.89
4.02
3.74
0 0.55 4.02 3.46 -2.02
3.38 0.15
> pairwise.t.test(part1B, base$AFP, p.adj = "holm")
data:
0
1
1 0.098 2 0.017 0.098
0
1
1 0.098 2 0.017 0.098
> describe.by(part1B,base$tconc)
Warning: describe.by is deprecated. Please use the describeBy function
group: 0
vars n mean
sd median trimmed mad min max range skew kurtosis
se
1
1 11 2.59 1.28
3.16
2.69 1.17 0.28 4.02 3.73 -0.67
-1.12 0.39
------------------------------------------------------------------------group: 1
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 25 3.01 1.39
3.16
3.25 1.27 -2.44 4.02 6.46 -2.39
6.75 0.28
------------------------------------------------------------------------Pgina 10
Sem ttulo
group: 2
vars n mean
sd median trimmed mad
min max range skew kurtosis se
1
1 25 2.98 1.48
4.02
3.2
0 -0.52 4.02 4.54 -1.11
-0.19 0.3
------------------------------------------------------------------------group: 3
vars n mean
sd median trimmed mad min max range skew kurtosis
se
1
1 34 3.59 0.84
4.02
3.78
0 0.55 4.02 3.46 -1.98
3.31 0.14
> pairwise.t.test(part1B, base$tconc, p.adj = "holm")
data:
0
1
2
1 1.00 2 1.00 1.00 3 0.13 0.32 0.31
> describe.by(part1B,base$nform)
Warning: describe.by is deprecated. Please use the describeBy function
group: 0
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 30 2.78 1.59
3.16
3.07 1.27 -2.44 4.02 6.46 -1.44
1.79 0.29
------------------------------------------------------------------------group: 1
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 23 3.23 1.32
4.02
3.48
0 -0.52 4.02 4.54 -1.6
1.33 0.28
------------------------------------------------------------------------group: 2
vars n mean
sd median trimmed mad min max range skew kurtosis
se
1
1 27 3.17 0.97
3.16
3.28 1.27 0.28 4.02 3.73 -1.04
0.57 0.19
------------------------------------------------------------------------group: 3
vars n mean
sd median trimmed mad min max range skew kurtosis
se
1
1 15 3.79 0.49
4.02
3.88
0 2.37 4.02 1.65 -1.79
1.94 0.13
> pairwise.t.test(part1B, base$nform, p.adj = "holm")
data:
0
1
2
1 0.69 2 0.69 0.88 3 0.07 0.69 0.62
Pgina 11
data:
Sem ttulo
Pairwise comparisons using t tests with pooled SD
0
1
1 0.105 2 0.028 0.201
> describe.by(part1B,base$ocupacode)
Warning: describe.by is deprecated. Please use the describeBy function
group: 0
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 39 2.82 1.49
3.16
3.05 1.27 -2.44 4.02 6.46 -1.52
2.23 0.24
------------------------------------------------------------------------group: 1
vars n mean
sd median trimmed mad min max range skew kurtosis
se
1
1 41 3.34 0.98
4.02
3.53
0 0.55 4.02 3.46 -1.41
1.08 0.15
------------------------------------------------------------------------group: 2
vars n mean sd median trimmed mad min max range skew kurtosis
se
1
1 13 3.82 0.5
4.02
3.94
0 2.37 4.02 1.65 -2.06
2.9 0.14
> print(aov.fun1B)
One-way analysis of means (not assuming equal variances)
> describe.by(part1B,base$funcpredcod)
Warning: describe.by is deprecated. Please use the describeBy function
group: 0
vars n mean
sd median trimmed mad min max range skew kurtosis
se
1
1 17 3.59 0.67
4.02
3.68
0 1.86 4.02 2.15 -1.25
0.37 0.16
------------------------------------------------------------------------group: 1
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 47 2.99 1.23
3.16
3.16 1.27 -0.52 4.02 4.54 -1.03
0.02 0.18
------------------------------------------------------------------------group: 2
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 29 3.27 1.41
4.02
3.56
0 -2.44 4.02 6.46 -2.57
6.97 0.26
> pairwise.t.test(part1B, base$funcpredcod, p.adj = "holm")
data:
0
1
1 0.25 2 0.66 0.66
Sem ttulo
> describe.by(part1B,base$funcpredcod)
Warning: describe.by is deprecated. Please use the describeBy function
group: 0
vars n mean
sd median trimmed mad min max range skew kurtosis
se
1
1 17 3.59 0.67
4.02
3.68
0 1.86 4.02 2.15 -1.25
0.37 0.16
------------------------------------------------------------------------group: 1
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 47 2.99 1.23
3.16
3.16 1.27 -0.52 4.02 4.54 -1.03
0.02 0.18
------------------------------------------------------------------------group: 2
vars n mean
sd median trimmed mad
min max range skew kurtosis
se
1
1 29 3.27 1.41
4.02
3.56
0 -2.44 4.02 6.46 -2.57
6.97 0.26
> tsexo1C <- t.test(base$part1C~base$sexo)
> tpublica1C <- t.test(base$part1C~base$publica)
> aov.afp1C <- oneway.test(base$part1C ~ base$AFP, data=base, na.action=na.omit, var.equal=FALSE)
> tpossuif1C <- t.test(base$part1C~base$possuif)
> aov.tconc1C <- oneway.test(base$part1C~base$tconc, data=base, na.action=na.omit, var.equal=FALSE)
> aov.nform1C <- oneway.test(base$part1C~base$nform, data=base, na.action=na.omit, var.equal=FALSE)
> tatuaform1C <- t.test(base$part1C~base$atuaform)
> aov.ocupa1C <- oneway.test(base$part1C~base$ocupacode, data=base, na.action=na.omit, var.equal=FALSE)
> aov.fun1C <- oneway.test(base$part1C~base$funcpredcod, data=base, na.action=na.omit, var.equal=FALSE)
> tnformcont1C <- t.test(base$part1C~base$nformcont)
> tnformcatpos1C <- t.test(base$part1C~base$nformcatpos)
> tnformcont1C
Welch Two Sample t-test
Sem ttulo
data: base$part1C by base$publica
t = -0.21366, df = 54.381, p-value = 0.8316
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.8591570 0.6936454
sample estimates:
mean in group 0 mean in group 1
2.882876
2.965632
> tpossuif1C
0
1
1 0.027 2 0.046 0.608
Pgina 14
Sem ttulo
data:
0
1
2
1 0.26 2 0.80 0.80 3 0.11 0.80 0.42
0
1
2
1 1.0 2 1.0 1.0 3 0.4 0.4 0.4
0
1
1 0.1009 2 0.0061 0.1009
Pgina 15