Skip to content

Commit

Permalink
Merge branch 'nao-param-iss44'. Closes #44
Browse files Browse the repository at this point in the history
  • Loading branch information
philsf committed Jun 14, 2016
2 parents e8a326b + 33d898f commit 1ee1449
Show file tree
Hide file tree
Showing 21 changed files with 723 additions and 4 deletions.
Binary file added Aulas/BE-Nao_Param.pdf
Binary file not shown.
465 changes: 465 additions & 0 deletions Aulas/BE-Nao_Param.tex

Large diffs are not rendered by default.

Binary file added Aulas/BE-Nao_Param_4em1.pdf
Binary file not shown.
Binary file added Aulas/Nao_Param/2samples-bp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aulas/Nao_Param/2samples-h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aulas/Nao_Param/2samples-qq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 101 additions & 0 deletions Aulas/Nao_Param/2samples.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
"x" "y"
"1" 0.414866884375096 1.89420610842434
"2" 1.01611469092812 0.754270720866576
"3" 1.44297027579302 1.83516136172635
"4" 2.04093533037603 3.69696738919632
"5" 4.17796459465859 2.71726123588387
"6" 0.182923097447724 4.48116460702706
"7" 1.46906819333901 0.832282167993215
"8" 2.7198149642396 1.38682089804199
"9" 0.986145861804612 2.47450261758507
"10" 1.30082159712837 1.21263190507734
"11" 0.164805048293293 1.89234843249925
"12" 0.865984132816494 2.6857669249323
"13" 12.4772881276213 1.11956927378963
"14" 0.404781765693609 3.23869147731471
"15" 0.28375753677922 2.45964881486327
"16" 2.46507288983983 4.41030458958362
"17" 1.59877023340669 0.835145612069019
"18" 0.454521743093519 1.61772384221428
"19" 1.03011231829559 1.49168789193563
"20" 2.10250222914702 0.791715820273371
"21" 2.41144997208797 1.88956162059084
"22" 1.0421746406694 3.17428279797567
"23" 0.592717798955148 1.48577023945371
"24" 1.86420274512285 0.860497231433947
"25" 0.273754747791621 5.42532082383444
"26" 2.65778553138925 1.20005738582596
"27" 0.601140670645266 4.60736683844748
"28" 1.13599333584913 1.48569074553496
"29" 0.493949001909606 8.09642015845426
"30" 0.397055263543262 1.82504231167739
"31" 0.927434642100752 1.10047221262075
"32" 2.47623133113492 0.892403955316809
"33" 1.38550463143087 1.28265982455966
"34" 1.40267108954403 0.914878350038933
"35" 2.13723082145224 1.44733044157185
"36" 0.655104959283668 0.987077008229831
"37" 3.35389600196833 1.30017608049899
"38" 0.805058333439688 1.37161050497779
"39" 0.172129507089209 0.735474379270603
"40" 1.09205209493401 1.57392434325595
"41" 3.6068185843425 1.08455936224044
"42" 0.577945405592813 1.03913215856953
"43" 0.543825934573162 1.58496871264478
"44" 0.683480395800239 5.70255815670579
"45" 0.570455061543169 3.42952155293841
"46" 3.63893519467953 2.59894457359684
"47" 20.241563716081 1.17623305919986
"48" 0.38734578143956 0.689102102914652
"49" 5.96970352795529 1.88679534126298
"50" 3.25690639978696 1.6177487058797
"51" 0.52047239927517 5.99467841384203
"52" 0.527310449893038 3.35002505421159
"53" 4.48413937666519 0.704978117736546
"54" 2.12897672948101 1.13608200996832
"55" 3.83441744472717 0.620361739602417
"56" 2.87306455580042 0.923454109282174
"57" 0.372462581680341 6.21656078373656
"58" 1.24073846587114 4.88905516332982
"59" 0.794623200181997 1.4643216394124
"60" 2.61233064434514 5.39359561980745
"61" 0.921966706710064 3.45427617866244
"62" 0.642791919435502 2.13788804160224
"63" 6.1037017313607 2.47505955035816
"64" 0.578074793926844 2.39099556032838
"65" 0.26717209539394 1.10985919653891
"66" 2.51760230044099 0.718003057110566
"67" 3.63891116645856 0.813272064569329
"68" 0.756771174328342 1.57524046195684
"69" 0.60270990499317 2.06648273157859
"70" 0.395216814782632 7.1295101015546
"71" 1.29816932641383 3.11836820006082
"72" 1.75473856306636 3.89225560689059
"73" 1.67287656172119 1.31817832710168
"74" 2.23658890938697 0.752036582709042
"75" 1.15861521097605 2.15980413870449
"76" 1.55054352405069 2.43545626432936
"77" 0.337628029932128 4.86363484823899
"78" 0.931587320916169 0.80820478668879
"79" 1.0286614241161 2.5972438413553
"80" 1.31434633889625 2.74212920735058
"81" 1.41526493078472 0.971022060284481
"82" 0.917442664942019 0.93051729996639
"83" 0.759003867953231 2.19325438883556
"84" 8.46248474800835 0.745008964216615
"85" 0.277233222377171 3.11714204158836
"86" 3.5677695391498 2.02169828468359
"87" 0.873416397535684 4.07960623379037
"88" 0.147652852265147 0.988018445886991
"89" 3.29398119326343 0.64986558556295
"90" 1.13097411016084 2.23250486811435
"91" 5.9998211438477 2.49136393136012
"92" 0.351192171624199 0.740833803726196
"93" 2.29521308399538 4.37260772751142
"94" 1.26535639366583 2.67877274996622
"95" 1.2838631307908 1.32302014808785
"96" 0.287794513169364 1.53649622587148
"97" 0.666672243031857 2.00802794806759
"98" 0.656077640299591 1.04484347404931
"99" 0.528361041960162 2.43114720149355
"100" 1.24725403451655 1.85225328953814
Binary file added Aulas/Nao_Param/3samples-bp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions Aulas/Nao_Param/exemplos.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
## normal x lognormal ####
nl <- read.table("Aulas/Nao_Param/normal-lognormal.dat")
attach(nl)

par(mfrow = c(1,2))
hist(x1, main = "")
hist(x2, main = "")
par(mfrow = c(1,1))
boxplot(x1)
boxplot(x2)
par(mfrow = c(1,2))
qqnorm(x1); qqline(x1); qqnorm(x2); qqline(x2)
shapiro.test(x1)
shapiro.test(x2)

## Transformação ####
par(mfrow = c(1,2))
hist(x2); hist(log(x2))
hist(x2); qqnorm(log(x2)); qqline(log(x2))
hist(log(x2)); qqnorm(log(x2)); qqline(log(x2))
qqnorm(x2, main = "Dados originais"); qqline(x2); qqnorm(log(x2), main = "Dados (log)"); qqline(log(x2))
shapiro.test(log(x2))

detach(nl)
rm(nl)

## 2 amostras ####
twosamples <- read.table("Aulas/Nao_Param/2samples.dat")
attach(twosamples)

par(mfrow = c(1,1))
boxplot(x,y)
par(mfrow = c(1,2))
hist(x, main = "Amostra 1")
hist(y, main = "Amostra 2")
qqnorm(x, main = "Amostra 1"); qqline(x); qqnorm(y, main = "Amostra 2"); qqline(y)

detach(twosamples)
rm(twosamples)

## 3 amostras ####
par(mfrow = c(1,1))
boxplot(Ozone ~ Month, data = airquality, xlab="Mês", ylab="Ozônio", main="Medições de qualidade do ar em NY")
m.p <- aov(Ozone ~ Month, data = airquality)
m.np <- kruskal.test(Ozone ~ Month, data = airquality)
m.ols <- lm(Ozone ~ Month, data = airquality)

summary(m.p) # não significativo
m.np # significativo
summary(m.ols)
Binary file added Aulas/Nao_Param/lognormal-bp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aulas/Nao_Param/lognormal-qq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aulas/Nao_Param/lognormal1-h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aulas/Nao_Param/lognormal2-h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aulas/Nao_Param/normal-bp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 101 additions & 0 deletions Aulas/Nao_Param/normal-lognormal.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
"x1" "x2"
"1" 169.755476522883 27.490203435636
"2" 173.022111247771 36.2049013449093
"3" 166.905182933215 7.68402686357979
"4" 180.209622641602 4.28372879097162
"5" 161.373468573945 6.2979901609884
"6" 164.463524729859 5.5449184252189
"7" 171.656962768664 16.3861993654349
"8" 163.648443339469 21.7900269701168
"9" 168.093165484974 22.3501625480265
"10" 161.316531158161 61.3976731501277
"11" 164.602212209002 2.29447737769415
"12" 173.28609914827 42.344224093174
"13" 168.644492932317 1.66835168066355
"14" 149.698297395244 5.47941042961393
"15" 173.248133867218 13.0797785536955
"16" 168.128785924485 4.27309862479843
"17" 169.929584001154 6.99191821861193
"18" 164.634846560472 26.3176054487897
"19" 170.027628594492 10.9524936517388
"20" 143.338344564398 38.6455352563344
"21" 177.380191647883 25.1936178391789
"22" 177.621062776306 12.0292239255561
"23" 177.875792649399 40.6007575754022
"24" 177.50857687332 25.2246135237443
"25" 153.278788137519 11.1660851361605
"26" 159.589589596735 4.66751629288557
"27" 183.995345753636 4.26587840564204
"28" 165.155798795996 7.18640746028805
"29" 180.088172047501 11.6761302590689
"30" 154.875055707017 6.20067163050287
"31" 166.050489400567 0.738718578572874
"32" 149.570613700438 7.10317641011334
"33" 177.985188492244 16.7597940063713
"34" 160.755705722325 17.0600187905148
"35" 175.302279100109 3.5904658863486
"36" 164.293478902595 48.0781748017698
"37" 169.515753644785 9.66363096384818
"38" 159.704823616481 1.59087937227103
"39" 189.237449655342 5.77452518936472
"40" 166.436733771226 32.2522152450237
"41" 158.326455964613 8.3908689975446
"42" 171.1983565865 58.940964015191
"43" 175.82149155692 6.3128190033691
"44" 172.654206617536 20.6372262580933
"45" 186.433889975785 9.03381384313897
"46" 170.659704644713 7.43786451552792
"47" 158.898520843496 1.93624498549937
"48" 170.459833370029 31.0788009847089
"49" 163.352637284319 4.80513521955927
"50" 166.693409375943 1.31297474623954
"51" 168.125609619244 7.44882308521904
"52" 151.174911725686 7.18201929058828
"53" 162.786283331806 19.4355700233568
"54" 168.397690036996 8.34491728065827
"55" 178.506147570942 18.3881847826378
"56" 161.514451490588 55.6887271519618
"57" 174.717426611842 14.5521454741755
"58" 163.505487023063 6.00268813725921
"59" 180.222861298204 11.3749712146495
"60" 152.676559180352 3.68201247765954
"61" 151.810562053453 45.6464514941798
"62" 161.046368363843 1.46214113804418
"63" 165.887014139784 7.16587417381714
"64" 165.48166135002 5.69247935803672
"65" 168.080198950816 46.2474711165369
"66" 166.012470821276 0.770105510908293
"67" 162.57980846052 10.9586036862823
"68" 167.722553933864 15.5413947126782
"69" 178.641046650511 4.25952228924351
"70" 168.055047678008 8.5019561901876
"71" 172.318342641826 10.1638638690349
"72" 191.638617032837 16.4367952151966
"73" 169.076243252429 52.0066735160805
"74" 155.329880151174 24.125038228089
"75" 172.632104826934 5.12133351587006
"76" 164.624067640723 13.724924875812
"77" 156.2131469304 11.3880143917468
"78" 172.679469802853 8.53103903014929
"79" 146.085894158874 22.4548358171442
"80" 174.584893801198 4.08839482775758
"81" 174.63508301925 13.2841427359659
"82" 159.227379192067 0.606283000631059
"83" 158.960337914484 5.32541814553164
"84" 164.38384564676 31.8791912514737
"85" 184.775553243041 7.81052527559181
"86" 168.433324204531 10.5383819620834
"87" 165.110220229639 14.5192699724768
"88" 172.272031936237 8.55252558268741
"89" 169.586041345716 23.8383643988892
"90" 167.784870686101 11.6345363269546
"91" 176.069183631742 3.61254023381558
"92" 183.967542148951 4.43497478642761
"93" 164.924603697481 11.4727881079049
"94" 173.035699304751 10.6614510908347
"95" 166.987154734338 37.3107711641538
"96" 181.202970859198 3.01587552850251
"97" 168.952510739711 29.2530256132274
"98" 166.455357537461 35.3198198089548
"99" 176.164807782963 6.80760096362674
"100" 171.088021081087 12.4626264452389
Binary file added Aulas/Nao_Param/normal-qq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aulas/Nao_Param/normal1-h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aulas/Nao_Param/normal2-h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aulas/Nao_Param/transf-h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aulas/Nao_Param/transf-qq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Este é o repositório da disciplina de Bioestatística do professor Felipe Figu

A digulgação do material para os alunos é feita pelo endereço: https://sites.google.com/site/proffelipefigueiredo/into/bioestatistica

##Planejamento de aulas de conteúdo
## Planejamento de aulas de conteúdo

[Cronograma][]

Expand All @@ -22,7 +22,7 @@ A digulgação do material para os alunos é feita pelo endereço: https://sites
- [Correlação e Regressão][]
- [Tutorial - Descritiva][]
- [Tutorial - Correlação e Regressão][]
- Testes não-paramétricos
- [Métodos não-paramétricos][]

[Cronograma]: https://docs.google.com/document/d/1xb7Yqxae8sbbbkPYjg5ZGhxJ8NFfxOURBISeWVHkjUE
[Introdução]: Aulas/BE-Intro_4em1.pdf
Expand All @@ -38,8 +38,10 @@ A digulgação do material para os alunos é feita pelo endereço: https://sites
[Correlação e Regressão]: Aulas/BE-Associacao_II_4em1.pdf
[Tutorial - Descritiva]: Aulas/BE-Pratica_Descritiva_4em1.pdf
[Tutorial - Correlação e Regressão]: Aulas/BE-Pratica_Associacao_4em1.pdf
[Métodos não-paramétricos]: Aulas/BE-Nao_Param_4em1.pdf

##Bibliografia

## Bibliografia

Livro texto:

Expand Down Expand Up @@ -77,7 +79,7 @@ Online:
[goodman1999]: http://annals.org/article.aspx?articleid=712762
[goodman1999-pdf]: http://www.perfendo.org/docs/bayesprobability/5.3_goodmanannintmed99all.pdf

##Avaliação
## Avaliação

A avaliação final da disciplina consistirá na apresentação de um seminário, sobre um estudo publicado em um journal. Os alunos deverão preparar e apresentar o seminário em dupla. O objetivo da avaliação é que os alunos façam uma síntese crítica da análise estatística utilizada neste estudo à luz dos conteúdos vistos ao longo da disciplina.

Expand Down

0 comments on commit 1ee1449

Please sign in to comment.