lunes, 7 de mayo de 2012

R - Tarea


R is an open source programming language and software environment for statistical computing and graphics. The R language is widely used among statisticians for developing statistical software and data analysis.
 Herramientas de cómputo - R
Archivo datos.dat
   Observation Gender Dosage Alertness
1            1      m      a         8
2            2      m      a        12
3            3      m      a        13
4            4      m      a        12
5            5      m      b         6
6            6      m      b         7
7            7      m      b        23
8            8      m      b        14
9            9      f      a        15
10          10      f      a        12
11          11      f      a        22
12          12      f      a        14
13          13      f      b        15
14          14      f      b        12
15          15      f      b        18
16          16      f      b        22
> file=datos.dat
> data.example=read.table(file,header=T)   
> data.example                             
> aov.ex2 = aov(Alertness~Gender*Dosage,data=data.example)
> summary(aov.ex2)                                
> print(model.tables(aov.ex2,"means"),digits=3)

No hay comentarios:

Publicar un comentario