Está en la página 1de 2

17/10/2018 RPubs - Teorema del Límite Central

RPubs brought to you byby RStudio


Teorema del Límite Central Edar Pech Santiago Last updated almost 3 years ago
Sign in Register

library(rafalib)
datos<-read.csv("mice_pheno.csv") Comments (–) Share Hide Toolbars
expMice<-na.omit(datos)
head(expMice)

## Sex Diet Bodyweight


## 1 F hf 31.94
## 2 F hf 32.48
## 3 F hf 22.82
## 4 F hf 19.92
## 5 F hf 32.22
## 6 F hf 27.50

machoCont<-expMice$Bodyweight[expMice$Diet=="chow" & expMice$Sex=="M"]


machoGras<-expMice$Bodyweight[expMice$Diet=="hf" & expMice$Sex=="M"]
hembraCont<-expMice$Bodyweight[expMice$Diet=="chow" & expMice$Sex=="F"]
hembraGras<-expMice$Bodyweight[expMice$Diet=="hf" & expMice$Sex=="F"]
par(mfrow=c(2,2))
hist(machoCont,density = 20)
hist(machoGras,density = 20)
hist(hembraCont,density = 20)
hist(hembraGras,density = 20)

https://rpubs.com/phobos/TLC 1/2
17/10/2018 RPubs - Teorema del Límite Central

https://rpubs.com/phobos/TLC 2/2

También podría gustarte