R Commands for MRC Mouse Network Training

Error message

  • Unable to create CTools CSS cache directory. Check the permissions on your files directory.
  • Unable to create CTools CSS cache directory. Check the permissions on your files directory.

R Commands for MRC Mouse Network Training

Simple Numerical:

akt2Fat=read.csv("akt2Fat.csv")
summary(akt2Fat)
wilcox.test(Value~Genotype, data = akt2Fat)
t.test(Value~Genotype,var.equal = TRUE, data = akt2Fat)

Catagorical:

abcd4Touch=matrix(c(122,9,2,8),2)
fisher.test(abcd4Touch)

Linear Model:

ptk7GS=read.csv("ptk7GS.csv")
require(nlme)
ptk7GSLM=lm(Value~Genotype + Gender + Genotype*Gender, ptk7GS,na.action="na.omit")
summary(ptk7GSLM)
ptk7GSLMRes<-residuals(ptk7GSLM)
qqnorm(scale(ptk7GSLMRes))
 
Mixed Model:
Excel formula: =LEFT(H2,(SEARCH("_",H2)-2))
ptk7GSLitter=read.csv("ptk7GS.csv")
ptk7GSMM=lme(Value~Genotype + Gender +Genotype*Gender,random=~1|Litter, ptk7GSLitter, na.action="na.omit")
summary(ptk7GSMM)
ptk7GSMMRes<-residuals(ptk7GSMM)
qqnorm(scale(ptk7GSMMRes))