1247 search results for "tutorial"

"R": Predicting a Test Set (Gasoline)

February 9, 2012
By
"R": Predicting a Test Set (Gasoline)

> data(gasoline)> #60 spectra of gasoline (octane is the constituent) > #We divide the whole Set into a Train Set and a Test Set.> gasTrain<-gasoline> gasTest<-gasoline> #Let´s develop the PLSR with the Tain Set ...

Read more »

"R": PLS Regression (Gasoline) – 005

February 8, 2012
By
"R": PLS Regression (Gasoline) – 005

Let´s see know how to plot the scores for the 3 PLS Components:  We can see the explained variance from each component in the diagonal.We can get it from R with:> explvar(gas1)   Comp 1      Comp 2  &nbs...

Read more »

"R": PLS Regression (Gasoline) – 004

February 7, 2012
By
"R": PLS Regression (Gasoline) – 004

In the previous post we plot the Cross Validation predictions with:> plot(gas1, ncomp = 3, asp = 1, line = TRUE)We can plot the fitted values instead with:> plot(gas1, ncomp = 3, asp = 1, line = TRUE,which=train) Graphics are different:Of course, using "train" we get  overoptimisc statistics and we should look...

Read more »

"R": PLS Regression (Gasoline) – 003

February 3, 2012
By
"R": PLS Regression  (Gasoline) – 003

The gasoline data set has the spectra of 60 samples acquired by diffuse reflectance from 900 to 1700 nm. We saw how to plot the spectra in the previous post.Now, following the tutorial of Bjorn-Helge Mevik published in "R-News Volume 6/3, August 2006", we will do the PLS regression:gas1 <- plsr(octane~NIR, ncomp = 10,data = gasoline, validation...

Read more »

"R": Looking at the Data (Gasoline) – 001

February 1, 2012
By
"R": Looking at the Data (Gasoline) – 001

As other softwares "R" has nice tools to look to the data before to develop the calibration.Statistics for the "Y" variable (in this case octane number) like Maximun, Minimun,..,standard deviation,...are important:> library(ChemometricsWithR)> data(gasoline)> summary(gasoline$octane)   Min.  1st Qu.  Median    Mean   3rd Qu.    Max.   83.40   85.88    87.75    87.18   88.45    89.60> sd(gasoline$octane) 1.530078And of course the Histogram:> hist(gasoline$octane)

Read more »

Updated Sentiment Analysis and a Word Cloud for Netflix – The R Way!

January 30, 2012
By
Updated Sentiment Analysis and a Word Cloud for Netflix – The R Way!

The Netflix investors must be happy and cheerful as the stock is up more than 78% since the beginning of the year (YES, 78%, Source: Yahoo Finance!).  I am not going to talk about what turned the stock around after a much talked/hyp...

Read more »

useR! 2012: Earlybird Registration for International R Users Conference, Nashville TN 12-15 2012

January 30, 2012
By

The 8th international R users conference useR! 2012 will be in Nashville TN USA June 12-15 with a special all-day pre-conference course from Bill Venables on June 11. We have a terrific lineup of half-day tutorials on June 12 and will have invited and contributed presentations of interest to a wide variety of R users. Details may be found...

Read more »

How to create the best Interactive R Language Online Learning Platform from the views of R community?

January 26, 2012
By

How to create the best Interactive R Language Online Learning Platform from the views of R community?: R offers a breadth and depth in statistical computing beyond what is available in commercial closed source products. Yet R remains, primarily, a ...

Read more »

CBC Reviews: Revolution R (in which this doesn’t go well)

January 24, 2012
By
CBC Reviews: Revolution R (in which this doesn’t go well)

Update!: The latest version of Revolution R, which added support for RHEL 6, appears to work (it appears to at least install, run, and perform basic tasks). See this post for more details. I’ve come to enjoy using R. I had dabbled with it in the past, but found it painfully opaque, and the Effort:Reward

Read more »

Interactive Graphics with the iplots Package (from “R in Action”)

January 24, 2012
By
Interactive Graphics with the iplots Package (from “R in Action”)

(This article was first published on R-statistics blog » R, and kindly contributed to R-bloggers) The followings introductory post is intended for new users of R.  It deals with interactive visualization using R through the iplots package. This is a guest article by Dr. Robert I. Kabacoff, the founder of (one of) the first online R tutorials websites: Quick-R. Kabacoff has...

Read more »