Modifications entre les versions 4 et 5
Version 4 à la date du 2006-11-08 08:22:18
Taille: 729
Éditeur: ThomasNoël
Commentaire: plus simple
Version 5 à la date du 2006-11-08 09:12:59
Taille: 3818
Éditeur: ThomasNoël
Commentaire:
Texte supprimé. Texte ajouté.
Ligne 8: Ligne 8:
 . Piste de départ : {{{aptitude install r-recommended}}}
= Installation de R puis de la bibliothèque ''mice'' (sur une EDGY AMD64) =

''Merci de tester la procédure suivante sur Ubuntu Dapper x86''

 1. installer R :
 {{{
$ sudo aptitude install r-recommended
}}}
 1. télécharger la dernière version depuis http://cran.cict.fr/src/contrib/Descriptions/mice.html (prendre le .tar.gz ''Package source'') :
 {{{
$ cd /tmp
$ wget http://cran.cict.fr/src/contrib/mice_1.14.tar.gz
}}}
 1. installer le package :
 {{{
$ sudo R CMD INSTALL -l /usr/local/lib/R/site-library/mice_1.14.tar.gz
* Installing *source* package 'mice' ...
** R
** data
** inst
** preparing package for lazy loading
Loading required package: MASS
Loading required package: nnet
Loading required package: nlme
** help
 >>> Building/Updating help pages for package 'mice'
     Formats: text html latex example
  complete text html latex example
  glm.mids text html latex example
(...)
  nhanes2 text html latex
  pool text html latex example
** building package indices ...
* DONE (mice)
}}}
 1. tester : lancer R et charger le module
 {{{
$ R

R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.1 (2006-06-01)
ISBN 3-900051-07-0

> library(mice)
Loading required package: MASS
Loading required package: nnet
Loading required package: nlme
MICE V1.14 library Copyright (2004) TNO Prevention and Health, Leiden
This library is distributed under the GNU General Public License (version 2)
Loading required package: Hmisc
Warning message:
there is no package called 'Hmisc' in: library(package, lib.loc = lib.loc, character.only = TRUE, logical = TRUE,
> q()
Save workspace image? [y/n/c]: n
}}}
 1. il semble manquer le module hmisc, qui est lui déjà packagé :
 {{{
$ sudo aptitude install r-cran-hmisc
}}}
 1. on relance R et on charge le module ''mice'' :
 {{{$ R

R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.1 (2006-06-01)
ISBN 3-900051-07-0

> library(mice)
Le chargement a nécessité le package : MASS
Le chargement a nécessité le package : nnet
Le chargement a nécessité le package : nlme
MICE V1.14 library Copyright (2004) TNO Prevention and Health, Leiden
This library is distributed under the GNU General Public License (version 2)
Le chargement a nécessité le package : Hmisc
Hmisc library by Frank E Harrell Jr

Type library(help='Hmisc'), ?Overview, or ?Hmisc.Overview')
to see overall documentation.

NOTE:Hmisc no longer redefines [.factor to drop unused levels when
subsetting. To get the old behavior of Hmisc type dropUnusedLevels().

Attachement du package : 'Hmisc'


        The following object(s) are masked from package:mice :

         oldUnclass .R. .SV4.


        The following object(s) are masked from package:stats :

         ecdf


Attachement du package : 'mice'


        The following object(s) are masked _by_ package:Hmisc :

         oldUnclass .R. .SV4.

>
}}}

Master pro (M2) Expertise et ingénierie des systèmes d’information en santé

[http://foad.refer.org/rubrique96.html]

Ticket Foad : 161 :

  • Nous avons à utiliser le logiciel de calcul scientifique R (qui est dans la distribution Ubuntu). Pour un enseignement qui aura lieu le 22 novembre nous allons avoir à utiliser le package "mice" de ce logiciel (téléchargeable à l'adresse suivante : http://cran.r-project.org/src/contrib/Descriptions/mice.html). Je ne sais pas si celui-ci est directement intégré dans la distribution Ubuntu, mais je pense que non.

Installation de R puis de la bibliothèque ''mice'' (sur une EDGY AMD64)

Merci de tester la procédure suivante sur Ubuntu Dapper x86

  1. installer R :
    $ sudo aptitude install r-recommended
  2. télécharger la dernière version depuis http://cran.cict.fr/src/contrib/Descriptions/mice.html (prendre le .tar.gz Package source) :

    $ cd /tmp
    $ wget http://cran.cict.fr/src/contrib/mice_1.14.tar.gz
  3. installer le package :
    $ sudo R CMD INSTALL -l /usr/local/lib/R/site-library/mice_1.14.tar.gz
    * Installing *source* package 'mice' ...
    ** R
    ** data
    ** inst
    ** preparing package for lazy loading
    Loading required package: MASS
    Loading required package: nnet
    Loading required package: nlme
    ** help
     >>> Building/Updating help pages for package 'mice'
         Formats: text html latex example 
      complete                          text    html    latex   example
      glm.mids                          text    html    latex   example
    (...)
      nhanes2                           text    html    latex
      pool                              text    html    latex   example
    ** building package indices ...
    * DONE (mice)
  4. tester : lancer R et charger le module
    $ R
    
    R : Copyright 2006, The R Foundation for Statistical Computing
    Version 2.3.1 (2006-06-01)
    ISBN 3-900051-07-0
    
    > library(mice)
    Loading required package: MASS
    Loading required package: nnet
    Loading required package: nlme
    MICE V1.14 library            Copyright (2004) TNO Prevention and Health, Leiden
    This library is distributed under the GNU General Public License (version 2)
    Loading required package: Hmisc
    Warning message:
    there is no package called 'Hmisc' in: library(package, lib.loc = lib.loc, character.only = TRUE, logical = TRUE,  
    > q()
    Save workspace image? [y/n/c]: n 
  5. il semble manquer le module hmisc, qui est lui déjà packagé :
    $ sudo aptitude install r-cran-hmisc
  6. on relance R et on charge le module mice : {{{$ R

R : Copyright 2006, The R Foundation for Statistical Computing Version 2.3.1 (2006-06-01) ISBN 3-900051-07-0

> library(mice) Le chargement a nécessité le package : MASS Le chargement a nécessité le package : nnet Le chargement a nécessité le package : nlme MICE V1.14 library Copyright (2004) TNO Prevention and Health, Leiden This library is distributed under the GNU General Public License (version 2) Le chargement a nécessité le package : Hmisc Hmisc library by Frank E Harrell Jr

Type library(help='Hmisc'), ?Overview, or ?Hmisc.Overview') to see overall documentation.

NOTE:Hmisc no longer redefines [.factor to drop unused levels when subsetting. To get the old behavior of Hmisc type dropUnusedLevels().

Attachement du package : 'Hmisc'

  • The following object(s) are masked from package:mice :
    • oldUnclass .R. .SV4.
    The following object(s) are masked from package:stats :
    • ecdf

Attachement du package : 'mice'

  • The following object(s) are masked _by_ package:Hmisc :
    • oldUnclass .R. .SV4.

> }}}

FOAD/EISIS (dernière édition le 2008-11-14 22:13:04 par ThomasNoël)