You are on page 1of 15

Sem ttulo

funcpredcod part2A Nome. sexo publica Instituio. nformcatpos nformcont


56
1
1
1
1
1
1
0
0
2
1
1
1
1
1
1
0
0
0
3
1
1
0
1
1
1
1
0
0
3
17
1
1
1
1
0
0
0
0
4
1
0
1
1
1
1
1
0
0
4
1
1
0
1
1
1
1
0
0
4
15
1
1
0
0
0
0
0
0
6
1
1
1
1
1
0
0
0
0
6
1
1
1
0
0
0
0
0
0
7
1
0
1
0
0
0
0
0
0 10
2
2
17
17
35
36
95
95 307
> install.packages("VIM")
Installing package into 'C:/Users/Pedro/Documents/R/win-library/3.2'
(as 'lib' is unspecified)
also installing the dependency 'laeken'
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/laeken_0.4.6.zip'
Content type 'application/zip' length 2764754 bytes (2.6 MB)
downloaded 2.6 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/VIM_4.5.0.zip'
Content type 'application/zip' length 1196718 bytes (1.1 MB)
downloaded 1.1 MB
package 'laeken' successfully unpacked and MD5 sums checked
package 'VIM' successfully unpacked and MD5 sums checked

The downloaded binary packages are in


C:\Users\Pedro\AppData\Local\Temp\Rtmpg9TfPo\downloaded_packages
> aggr_plot <- aggr(base, col=c('navyblue','red'), numbers=TRUE, sortVars=TRUE, labels=names(base), cex.axis=.7,
gap=3, ylab=c("Histogram of missing data","Pattern"))
Error: could not find function "aggr"
> library(VIM)
Warning: package 'VIM' was built under R version 3.2.5
Carregando pacotes exigidos: colorspace
Carregando pacotes exigidos: grid
Carregando pacotes exigidos: data.table
data.table 1.9.6 For help type ?data.table or https://github.com/Rdatatable/data.table/wiki
The fastest way to learn (by data.table authors): https://www.datacamp.com/courses/data-analysis-the-data-table-way
Attaching package: 'data.table'

The following object is masked from 'package:sfsmisc':


last

VIM is ready to use.


Since version 4.0.0 the GUI is in its own package VIMGUI.

Please use the package to use the new (and old) GUI.

Suggestions and bug-reports can be submitted at: https://github.com/alexkowa/VIM/issues


Attaching package: 'VIM'

The following object is masked from 'package:datasets':


sleep

> aggr_plot <- aggr(base, col=c('navyblue','red'), numbers=TRUE, sortVars=TRUE, labels=names(base), cex.axis=.7,


gap=3, ylab=c("Histogram of missing data","Pattern"))
Variables sorted by number of missings:
Variable
Count
Instituio. 0.37894737
publica 0.36842105

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

Error: evaluation nested too deeply: infinite recursion / options(expressions=)?


> summary(base[,23:30])
part1A
part1C
part1D
part1B
part2A
Min.
:-2.718
Min.
:-2.706
Min.
:-2.813
Min.
:-2.444
Min.
:-3.4633
1st Qu.: 1.909
1st Qu.: 1.713
1st Qu.: 2.785
1st Qu.: 2.765
1st Qu.:-0.4968
Median : 2.751
Median : 3.088
Median : 2.785
Median : 4.016
Median : 0.1668
Mean
: 2.501
Mean
: 2.883
Mean
: 2.274
Mean
: 3.161
Mean
:-0.1402
3rd Qu.: 3.663
3rd Qu.: 3.977
3rd Qu.: 2.785
3rd Qu.: 4.016
3rd Qu.: 0.5017
Max.
: 3.663
Max.
: 4.943
Max.
: 2.785
Max.
: 4.016
Max.
: 3.4529
NA's
:1
NA's
:2
part2B
part2C
part2D
Min.
:-3.7465
Min.
:-4.6399
Min.
:-2.93448
1st Qu.: 0.4812
1st Qu.:-0.7392
1st Qu.: 0.02571
Median : 1.3608
Median : 0.2309
Median : 0.80915
Mean
: 1.3093
Mean
: 0.2934
Mean
: 0.56835
Pgina 2

part1A
part1A
part1A
part1A
part1A

part2A
part2A
part2A
part2A
part2A

part2D
part2D
part2D
part2D
part2D

3rd Qu.: 2.1553


Max.
: 4.5389

3rd Qu.: 1.2409


Max.
: 4.7112

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:

Pairwise comparisons using t tests with pooled SD

part1A and base$AFP

0
1
1 9e-05 2 0.0011 0.1953

P value adjustment method: holm


> print(aov.afp1A)

One-way analysis of means (not assuming equal variances)

data: base$part1A and base$AFP


F = 3.3515, num df = 2.0, denom df = 17.6, p-value = 0.05844

> 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

> pairwise.t.test(part1A, base$AFP, p.adj = "holm")


data:

Sem ttulo

Pairwise comparisons using t tests with pooled SD

part1A and base$AFP

0
1
1 9e-05 2 0.0011 0.1953

P value adjustment method: holm


> tnformcont1A

Welch Two Sample t-test

data: base$part1A by base$nformcont


t = 1.8445, df = 89.244, p-value = 0.06843
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.04104997 1.10416029
sample estimates:
mean in group cont mean in group int
2.794715
2.263160
> tnformcatpos1A

Welch Two Sample t-test

data: base$part1A by base$nformcatpos


t = -1.4063, df = 55.24, p-value = 0.1652
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-1.0724147 0.1879064
sample estimates:
mean in group grad mean in group pos
2.199554
2.641808
> tsexo1A

Welch Two Sample t-test

data: base$part1A by base$sexo


t = -1.5134, df = 72.31, p-value = 0.1345
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-1.033077 0.141381
sample estimates:
mean in group 0 mean in group 1
2.383269
2.829117
> tpublica1A

Welch Two Sample t-test

data: base$part1A by base$publica


t = 1.1228, df = 52.198, p-value = 0.2667
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.2807104 0.9940392
sample estimates:
mean in group 0 mean in group 1
2.901119
2.544454
> tpossuif1A

Welch Two Sample t-test


Pgina 4

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

Welch Two Sample t-test

data: base$part1A by base$atuaform


t = -2.0067, df = 14.351, p-value = 0.064
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-2.06855746 0.06643531
sample estimates:
mean in group 0 mean in group 1
1.638046
2.639108
> print(aov.afp1A)

One-way analysis of means (not assuming equal variances)

data: base$part1A and base$AFP


F = 3.3515, num df = 2.0, denom df = 17.6, p-value = 0.05844

> 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:

Pairwise comparisons using t tests with pooled SD

part1A and base$AFP

0
1
1 9e-05 2 0.0011 0.1953

P value adjustment method: holm


> print(aov.tconc1A)

One-way analysis of means (not assuming equal variances)

data: base$part1A and base$tconc


F = 1.4802, num df = 3.000, denom df = 33.391, p-value = 0.2377
> tapply(part1A,base$tconc,mean)
0
1
2
3
1.693989
NA 2.367248 2.833721
> pairwise.t.test(part1A, base$tconc, p.adj = "holm")

Pairwise comparisons using t tests with pooled SD


Pgina 5

data:

part1A and base$tconc

Sem ttulo

0
1
2
1 0.50 2 0.74 0.85 3 0.12 0.85 0.74

P value adjustment method: holm


> print(aov.nform1A)

One-way analysis of means (not assuming equal variances)

data: base$part1A and base$nform


F = 5.2531, num df = 3.000, denom df = 48.564, p-value = 0.003214
> pairwise.t.test(part1A, base$nform, p.adj = "holm")
data:

Pairwise comparisons using t tests with pooled SD

part1A and base$nform

0
1
2
1 1.000 2 1.000 1.000 3 0.068 0.184 0.257

P value adjustment method: holm


> pairwise.t.test(part1A, base$nform, p.adj = "bonf")
data:

Pairwise comparisons using t tests with pooled SD

part1A and base$nform

0
1
2
1 1.000 2 1.000 1.000 3 0.068 0.221 0.385

P value adjustment method: bonferroni


> print(aov.nform1A)

One-way analysis of means (not assuming equal variances)

data: base$part1A and base$nform


F = 5.2531, num df = 3.000, denom df = 48.564, p-value = 0.003214

> 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:

part1A and base$nform

Sem ttulo

0
1
2
1 1.000 2 1.000 1.000 3 0.068 0.184 0.257

P value adjustment method: holm


> pairwise.t.test(part1A, base$nform)
data:

Pairwise comparisons using t tests with pooled SD

part1A and base$nform

0
1
2
1 1.000 2 1.000 1.000 3 0.068 0.184 0.257

P value adjustment method: holm


> pairwise.t.test(part1A, base$nform)
data:

Pairwise comparisons using t tests with pooled SD

part1A and base$nform

0
1
2
1 1.000 2 1.000 1.000 3 0.068 0.184 0.257

P value adjustment method: holm


> pairwise.t.test(part1A, base$nform, p.adj = "holm")
data:

Pairwise comparisons using t tests with pooled SD

part1A and base$nform

0
1
2
1 1.000 2 1.000 1.000 3 0.068 0.184 0.257

P value adjustment method: holm


> print(aov.nform1A)

One-way analysis of means (not assuming equal variances)

data: base$part1A and base$nform


F = 5.2531, num df = 3.000, denom df = 48.564, p-value = 0.003214
> print(aov.ocupa1A)

One-way analysis of means (not assuming equal variances)

data: base$part1A and base$ocupacode


F = 11.12, num df = 2.000, denom df = 49.395, p-value = 0.000103

> 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:

Pairwise comparisons using t tests with pooled SD

part1A and base$ocupacode

0
1
1 0.0156 2 0.0031 0.1419

P value adjustment method: holm


> print(aov.fun1A)

One-way analysis of means (not assuming equal variances)

data: base$part1A and base$funcpredcod


F = 0.55645, num df = 2.000, denom df = 37.333, p-value = 0.5779
> tapply(part1A,base$funcpredcod,mean)
0
1
2
2.642743
NA 2.666918
> pairwise.t.test(part1A, base$funcpredcod, p.adj = "holm")
data:
0 1
1 1 2 1 1
P
>
>
>
>
>
>
>
>
>
>
>
>
>

Pairwise comparisons using t tests with pooled SD

part1A and base$funcpredcod

value adjustment method: holm


#part1B
tsexo1B <- t.test(base$part1B~base$sexo)
tpublica1B <- t.test(base$part1B~base$publica)
aov.afp1B <- oneway.test(base$part1B ~ base$AFP, data=base, na.action=na.omit, var.equal=FALSE)
tpossuif1B <- t.test(base$part1B~base$possuif)
aov.tconc1B <- oneway.test(base$part1B~base$tconc, data=base, na.action=na.omit, var.equal=FALSE)
aov.nform1B <- oneway.test(base$part1B~base$nform, data=base, na.action=na.omit, var.equal=FALSE)
tatuaform1B <- t.test(base$part1B~base$atuaform)
aov.ocupa1B <- oneway.test(base$part1B~base$ocupacode, data=base, na.action=na.omit, var.equal=FALSE)
aov.fun1B <- oneway.test(base$part1B~base$funcpredcod, data=base, na.action=na.omit, var.equal=FALSE)
tnformcont1B <- t.test(base$part1B~base$nformcont)
tnformcatpos1B <- t.test(base$part1B~base$nformcatpos)
tnformcont1B
Welch Two Sample t-test

data: base$part1B by base$nformcont


t = 1.7096, df = 86.768, p-value = 0.09091
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.06801165 0.90438197
sample estimates:
mean in group cont mean in group int
3.394160
2.975975
> tnformcatpos1B

Welch Two Sample t-test

data: base$part1B by base$nformcatpos


t = -1.731, df = 41.16, p-value = 0.09094

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

Welch Two Sample t-test

data: base$part1B by base$sexo


t = 0.54927, df = 74.907, p-value = 0.5845
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.3607921 0.6354833
sample estimates:
mean in group 0 mean in group 1
3.286512
3.149166
> tpublica1B

Welch Two Sample t-test

data: base$part1B by base$publica


t = -1.5464, df = 38.679, p-value = 0.1302
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-1.044957 0.139592
sample estimates:
mean in group 0 mean in group 1
2.955337
3.408019
> tpossuif1B

Welch Two Sample t-test

data: base$part1B by base$possuif


t = -0.41765, df = 88.635, p-value = 0.6772
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.6036333 0.3939568
sample estimates:
mean in group 0 mean in group 1
3.121129
3.225967
> tatuaform1B

Welch Two Sample t-test

data: base$part1B by base$atuaform


t = -1.4361, df = 12.996, p-value = 0.1746
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-2.1152730 0.4260014
sample estimates:
mean in group 0 mean in group 1
2.431803
3.276439
> print(aov.afp1B)

One-way analysis of means (not assuming equal variances)

data: base$part1B and base$AFP


F = 3.5431, num df = 2.000, denom df = 17.782, p-value = 0.05069
> tapply(part1B,base$AFP,mean)

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:

Pairwise comparisons using t tests with pooled SD

part1B and base$AFP

0
1
1 0.098 2 0.017 0.098

P value adjustment method: holm


> 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:

Pairwise comparisons using t tests with pooled SD

part1B and base$AFP

0
1
1 0.098 2 0.017 0.098

P value adjustment method: holm


> print(aov.tconc1B)

One-way analysis of means (not assuming equal variances)

data: base$part1B and base$tconc


F = 3.0854, num df = 3.000, denom df = 33.768, p-value = 0.04025

> 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:

Pairwise comparisons using t tests with pooled SD

part1B and base$tconc

0
1
2
1 1.00 2 1.00 1.00 3 0.13 0.32 0.31

P value adjustment method: holm


> print(aov.nform1B)

One-way analysis of means (not assuming equal variances)

data: base$part1B and base$nform


F = 4.9561, num df = 3.000, denom df = 49.689, p-value = 0.004356

> 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:

Pairwise comparisons using t tests with pooled SD

part1B and base$nform

0
1
2
1 0.69 2 0.69 0.88 3 0.07 0.69 0.62

P value adjustment method: holm


> print(aov.ocupa1B)

One-way analysis of means (not assuming equal variances)

data: base$part1B and base$ocupacode


F = 7.2694, num df = 2.000, denom df = 51.102, p-value = 0.001666
> tapply(part1B,base$ocupacode,mean)
0
1
2
2.818594 3.338524 3.823732
> pairwise.t.test(part1B, base$ocupacode, p.adj = "holm")

Pgina 11

data:

Sem ttulo
Pairwise comparisons using t tests with pooled SD

part1B and base$ocupacode

0
1
1 0.105 2 0.028 0.201

P value adjustment method: holm


> print(aov.ocupa1B)

One-way analysis of means (not assuming equal variances)

data: base$part1B and base$ocupacode


F = 7.2694, num df = 2.000, denom df = 51.102, p-value = 0.001666

> 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)

data: base$part1B and base$funcpredcod


F = 3.0519, num df = 2.000, denom df = 51.656, p-value = 0.05588

> 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:

Pairwise comparisons using t tests with pooled SD

part1B and base$funcpredcod

0
1
1 0.25 2 0.66 0.66

P value adjustment method: holm


> print(aov.fun1B)

One-way analysis of means (not assuming equal variances)

data: base$part1B and base$funcpredcod


F = 3.0519, num df = 2.000, denom df = 51.656, p-value = 0.05588
Pgina 12

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

data: base$part1C by base$nformcont


t = 0.92529, df = 91.282, p-value = 0.3573
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.3725104 1.0222302
sample estimates:
mean in group cont mean in group int
3.063753
2.738893
> tnformcatpos1C

Welch Two Sample t-test

data: base$part1C by base$nformcatpos


t = -0.53849, df = 55.34, p-value = 0.5924
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.9756853 0.5623519
sample estimates:
mean in group grad mean in group pos
2.741112
2.947779
> tsexo1C

Welch Two Sample t-test

data: base$part1C by base$sexo


t = 0.17727, df = 75.33, p-value = 0.8598
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.6550133 0.7829820
sample estimates:
mean in group 0 mean in group 1
2.948702
2.884718
> tpublica1C

Welch Two Sample t-test


Pgina 13

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

Welch Two Sample t-test

data: base$part1C by base$possuif


t = 0.038496, df = 71.012, p-value = 0.9694
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.7235445 0.7520324
sample estimates:
mean in group 0 mean in group 1
2.887913
2.873669
> tatuaform1C

Welch Two Sample t-test

data: base$part1C by base$atuaform


t = -1.1298, df = 14.048, p-value = 0.2775
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-2.1146125 0.6551553
sample estimates:
mean in group 0 mean in group 1
2.252644
2.982373
> print(aov.afp1C)

One-way analysis of means (not assuming equal variances)

data: base$part1C and base$AFP


F = 1.5848, num df = 2.000, denom df = 18.166, p-value = 0.232
> tapply(part1C,base$AFP,mean)
0
1
2
1.401974 3.097990 2.911451
> pairwise.t.test(part1C, base$AFP, p.adj = "holm")
data:

Pairwise comparisons using t tests with pooled SD

part1C and base$AFP

0
1
1 0.027 2 0.046 0.608

P value adjustment method: holm


> print(aov.tconc1C)

One-way analysis of means (not assuming equal variances)

data: base$part1C and base$tconc


F = 2.2206, num df = 3.000, denom df = 35.483, p-value = 0.1028
> tapply(part1C,base$tconc,mean)
0
1
2
3
1.884015 3.085029 2.565908 3.289452
> pairwise.t.test(part1C, base$tconc, p.adj = "holm")

Pgina 14

Sem ttulo

data:

Pairwise comparisons using t tests with pooled SD

part1C and base$tconc

0
1
2
1 0.26 2 0.80 0.80 3 0.11 0.80 0.42

P value adjustment method: holm


> print(aov.nform1C)

One-way analysis of means (not assuming equal variances)

data: base$part1C and base$nform


F = 1.7391, num df = 3.000, denom df = 45.231, p-value = 0.1724
> tapply(part1C,base$nform,mean)
0
1
2
3
2.741112 2.735999 2.698996 3.720315
> pairwise.t.test(part1C, base$nform, p.adj = "holm")
data:

Pairwise comparisons using t tests with pooled SD

part1C and base$nform

0
1
2
1 1.0 2 1.0 1.0 3 0.4 0.4 0.4

P value adjustment method: holm


> print(aov.ocupa1C)

One-way analysis of means (not assuming equal variances)

data: base$part1C and base$ocupacode


F = 6.5278, num df = 2.00, denom df = 37.88, p-value = 0.003665
> tapply(part1C,base$ocupacode,mean)
0
1
2
2.395573 3.025112 4.052006
> pairwise.t.test(part1C, base$ocupacode, p.adj = "holm")
data:

Pairwise comparisons using t tests with pooled SD

part1C and base$ocupacode

0
1
1 0.1009 2 0.0061 0.1009

P value adjustment method: holm


> print(aov.fun1C)

One-way analysis of means (not assuming equal variances)

data: base$part1C and base$funcpredcod


F = 0.90465, num df = 2.000, denom df = 38.561, p-value = 0.4131
> tapply(part1C,base$funcpredcod,mean)
0
1
2
3.340102 2.716616 2.984824

Pgina 15

You might also like