Biostatistics (biol 467)

 

 

 

 

 


syllabus

**grades (2 April 2017)**
 

 



week 1 (Jan 16, 18)
  - installing R and RStudio
  - Topic 1: language of experiments (experimental variables, treatments, replication, etc.)
  - **assignment 1: language of experiments**

week 2 (Jan 23, 25)
  - Topic 2: how to structure datasets
  - **assignment 2: how to structure datasets & import them into R**
  - Topic 3: mathematical variable types AND summarizing data

week 3 & 4 (Jan 30, Feb 1, 6, 8)
: - Topic 4: forming *conclusion* about a *sample* vs. *inference* about a statistical *population*
  - exam1 (unless postponed to week 5)

weeks 5 & 6 (Feb 13, 15)
  - experiments with one continuous RV and one categorical EV 

week 7 (Feb 27, Mar 1) 
  - experiments with two continuous variables 
  - experiments with two ordinal (i.e., ranked) variables 

week 8 (Mar 6, 8): spring break

week 9 (Mar 13, 15) 
  - experiments with one continuous EV and one continuous RV

week 10 (Mar 20, 22)
  - experiments with one categorical RV and one continuous or categorical EV 

week 11 (Mar 27):
  - exam 2

week 12 (Apr 3, 5)
  - experiments with one continuous RV and at least two categorical, crossed EVs

week 13 (Apr 10, 12)
  - experiments with one continuous RV, at least one EV, and a "block" factor (i.e., each replicate is a pair of experimental subjects or a triplet of expt subjects or some other size "block" of expt subjects)

week 14 (Apr 17, 19)
  - experiments with one continuous RV, at least one categorical EV, and a continuous EV (a covariate)
  - experiments with one continuous RV and more than one continuous EVs
  - example of a multivariatae data reduction technique

week 15 (Apr 24, 26)
  - alternatives when response variable’s error distribution doesn’t meet requirements of a test
  - experiments with only categorical variables: analysis of frequencies (i.e., counts) & relative frequencies (i.e., proportions) 

week 16 (May 1, 3)
  - experiments with only categorical variables (continued)
  - exam 3

week 17 (May 8)final exam at 12pm

 

   
   
   
  My "go-to" websites for R
   
 

1. The official R website
https://cran.r-project.org

2. A great overview of R websites, & an excellent reference site itself
http://www.inside-r.org/r-resources-web

3. My FAVORITE quick reference sites
Rstudio Cheat Sheets (https://www.rstudio.com/resources/cheatsheets)
Quick-R (http://www.statmethods.net)
R Tutorial (http://www.r-tutor.com)
R Cookbook (http://www.cookbook-r.com

4. My favorite sites with more detailed explanations and examples
http://whitlockschluter.zoology.ubc.ca/r-code
http://www.ats.ucla.edu/stat
http://rtutorialseries.blogspot.com
http://r4stats.com
http://ww2.coastal.edu/kingw/statistics/R-tutorials/index.html
http://www.gardenersown.co.uk/Education/Lectures/R/index.htm
http://personality-project.org/r/r.guide.html
http://www.burns-stat.com/documents/tutorials/impatient-r
http://www.burns-stat.com/favorite-pages
http://data.princeton.edu/R/default.html
http://manuals.bioinformatics.ucr.edu/home/programming-in-r

5. Three of my favorite "R Community" type sites. Careful, many people will be mean if you ask something that is easily searchable on the site.
http://www.r-bloggers.com
http://stackoverflow.com/tags/r
http://r.789695.n4.nabble.com
 

 
   
 



r-code_examples.txt

W&S code for combined stripchart & mean with ci
W&S code for combined stripchart & mean +/- sd customized to assign 2


#creates a new variable (idweek) in the dataset dat1 by combining id with week and making sure there's no space between the value of id and the value of week.
dat1$idweek = paste(dat1$id, dat1$week, sep="")

currentdataframeName$varName<-ifelse((currentdataframeName$varName=="currentTxtValue"), "newTxtValueIfTrue", "newTxtValueIfFalse")

newdataframeName<-subset(existingDataframeName, VarOfInterest=="txtValueOfInterest")