patriciahoffmanphd

 

 

Here is the Lecture:

BeginningR



Here is the code from the examples:

MyFirstRLesson

ComparisonControl

UserDefnFunction

NewPackage

 

Here is code for you to explore:

ExploreParkinson  Notice that the first colm is just the Subject Identifier which should be a factor.

                           This code turns that colm into a factor

NewPackage         This shows how to load in a new package

 

 

Data files needed to run the .r code:

filter50HzNotch.txt

filter60HzNotchblanks.txt

matrixletters.csv

myfirstdata.csv

ProstateCancerDataESL.csv

 

 

 

To run the plot demo:

library(help="graphics")
#This will show you several graphics functions
#press the Enter key to move to each new graph
demo(graphics)

 

This is a lesson on regression and cross validation:

Regression Lecture

RegressionExamples

 

 

Here are more r functions to explore:

 

 - cbind:  add a column of data to an existing structure

 - rbind:  add a row of data to an existing structure

 - grep, grepl:  finding things in data structures

 - gsub:  replacing data elements

 - subset:  taking just a piece of a data strucuture, conditionally

 - plr()

 - ddplr()

 

 

Another data structure to explore is lists

 

Here are some interesting Packages to investigate:

 

   caret     Classification and Regression Training

e1071       Misc Functions of the Department of Statistics (e1071), TU Wien

 

 

Make a free website with Yola