Monthly Archives: October 2010

Some Basic Functions

Here are a couple of functions that are from scratch. The basic form is always the same: x<-function(){ #open the function here #body of function return() #value of list vector to be returned } #close the function here #Try out … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Quick R’s Take on Power Functions

http://www.statmethods.net/stats/power.html

Posted in Uncategorized | Tagged | Leave a comment

Chi Square GOF Test

The following chunk of code will create a function to conduct a chi-square goodness of fit test in R. #Professor Example – Goodness of fit #Do the observed favorability proportions depart markedly from their #expected value? enroll<-c(32,25,10) expected<-c(22.3,22.3,22.3) rbind(enroll,expected) chi<-sum(((enroll-expected)^2)/expected) … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Quick R’s Take on ANOVA (aov)

http://www.statmethods.net/stats/anova.html I also posted some other notes on BB for ANOVA.

Posted in Uncategorized | Tagged , | Leave a comment

Rattle

http://cran.r-project.org/web/packages/rattle/index.html

Posted in Uncategorized | Tagged , | Leave a comment