Modelos de Regress ̃ao e aplicações no ambiente R

13 a 17 de Abril de 2015 - Manaus - AM
Prof. Dr. Walmes M. Zeviani
Fundação Oswaldo Cruz - FIOCRUZ
Lab. de Estatística e Geoinformação - LEG
Departamento de Estatística - UFPR


Instalação dos pacotes


Pacotes oficiais

##=============================================================================
## Modelos de Regressão e aplicações no ambiente R
##
##   13 a 17 de Abril de 2015 - Manaus/AM
##   Fundação Oswaldo Cruz - FIOCRUZ
## 
##                                                  Prof. Dr. Walmes M. Zeviani
##                                                                LEG/DEST/UFPR
##=============================================================================

##-----------------------------------------------------------------------------
## Pacotes que serão usados no curso.
 
pkg <- c("latticeExtra", "gridExtra",
         "doBy", "multcomp", "devtools", 
         "plyr", "reshape", "reshape2",
         "alr3", "nlrwr", "faraway",
         "car", "aod", "lmtest",
         "boot", "ellipse", "asbio",
         "nlstools", "nls2",
         "segmented", "minpack.lm",
         "splines", "locfit",
         "rootSolve", "numDeriv",
         "fmsb", "ridge", "genridge",
         "gam", "mgcv", "nlme", "rsm",
         "fBasics", "EnvStats", "ExpDes")

install.packages(pkg, dependencies=TRUE,
                 repos="http://cran-r.c3sl.ufpr.br")

## Interfaces gráficas.
install.packages("rpanel", dependencies=TRUE,
                 repos="http://cran-r.c3sl.ufpr.br")

Instalar pacote do GitHub

##-----------------------------------------------------------------------------
## Pacote wzRfun por Walmes Zeviani.

browseURL("https://github.com/walmes/wzRfun")

require(devtools)
install_github("wzRfun", "walmes")

Carregar pacotes

##-----------------------------------------------------------------------------
## Carregando todos os pacotes na sessão teste.

pkg <- c("latticeExtra", "gridExtra",
         "doBy", "multcomp", "devtools", 
         "plyr", "reshape", "reshape2",
         "alr3", "nlrwr", "faraway",
         "car", "aod", "lmtest",
         "boot", "ellipse", "asbio",
         "nlstools", "nls2",
         "segmented", "minpack.lm",
         "splines", "locfit",
         "rootSolve", "numDeriv",
         "fmsb", "ridge", "genridge",
         "gam", "mgcv", "nlme", "rsm",
         "fBasics", "EnvStats", "ExpDes",
         "rpanel", "wzRfun")
sapply(pkg, require, character.only=TRUE) 
## Warning: there is no package called 'ridge'
## Warning: there is no package called 'genridge'

##-----------------------------------------------------------------------------
## Informações da sessão.

Sys.time()
## [1] "2015-04-06 09:29:47 BRT"
sessionInfo()
## R version 3.1.1 (2014-07-10)
## Platform: x86_64-pc-linux-gnu (64-bit)
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=pt_BR.UTF-8       
##  [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=pt_BR.UTF-8    LC_MESSAGES=en_US.UTF-8   
##  [7] LC_PAPER=pt_BR.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
## [10] LC_TELEPHONE=C             LC_MEASUREMENT=pt_BR.UTF-8 LC_IDENTIFICATION=C       
## 
## attached base packages:
##  [1] tcltk     methods   splines   grid      stats     graphics  grDevices utils    
##  [9] datasets  base     
## 
## other attached packages:
##  [1] wzRfun_0.4          rpanel_1.1-3        ExpDes_1.1.2        EnvStats_1.0.2     
##  [5] fBasics_3010.86     timeSeries_3010.97  timeDate_3010.98    rsm_2.06           
##  [9] mgcv_1.8-3          gam_1.08            fmsb_0.5.1          numDeriv_2012.9-1  
## [13] rootSolve_1.6.5     locfit_1.5-9.1      segmented_0.4-0.0   asbio_1.1-1        
## [17] ellipse_0.3-8       boot_1.3-11         aod_1.3             faraway_1.0.6      
## [21] nlrwr_1.1-0         sandwich_2.3-0      NRAIA_0.9-8         nlstools_1.0-0     
## [25] nls2_0.2            proto_0.3-10        NISTnls_0.9-13      lmtest_0.9-33      
## [29] zoo_1.7-10          HydroMe_2.0         minpack.lm_1.1-8    nlme_3.1-117       
## [33] drc_2.3-96          plotrix_3.5-7       magic_1.5-6         abind_1.4-0        
## [37] gtools_3.2.1        alr3_2.0.5          car_2.0-22          reshape2_1.4       
## [41] reshape_0.8.5       plyr_1.8.1          devtools_1.5        multcomp_1.3-6     
## [45] TH.data_1.0-3       mvtnorm_0.9-9997    doBy_4.5-10         MASS_7.3-34        
## [49] survival_2.37-7     gridExtra_0.9.1     latticeExtra_0.6-26 lattice_0.20-29    
## [53] RColorBrewer_1.0-5  rmarkdown_0.3.10    knitr_1.6          
## 
## loaded via a namespace (and not attached):
##  [1] deSolve_1.11         digest_0.6.4         evaluate_0.5.5       formatR_1.0         
##  [5] htmltools_0.2.6      httr_0.5             lme4_1.1-7           Matrix_1.1-4        
##  [9] memoise_0.2.1        minqa_1.2.3          multcompView_0.1-5   nloptr_1.0.4        
## [13] nnet_7.3-8           parallel_3.1.1       pixmap_0.4-11        Rcpp_0.11.0         
## [17] RCurl_1.95-4.3       scatterplot3d_0.3-35 stabledist_0.6-6     stringr_0.6.2       
## [21] tkrplot_0.0-23       tools_3.1.1          whisker_0.3-2        yaml_2.1.13